summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yaml
diff options
context:
space:
mode:
authorseth <[email protected]>2024-05-21 19:53:34 -0400
committerseth <[email protected]>2024-05-21 20:07:55 -0400
commite8615964144b92d910fca165debcb68a0ffecf88 (patch)
tree6307a7a79fb3b1b8458554d3cb9ccf09bb2fad05 /.github/workflows/ci.yaml
initial commitv0.1.0
Diffstat (limited to '.github/workflows/ci.yaml')
-rw-r--r--.github/workflows/ci.yaml33
1 files changed, 33 insertions, 0 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
new file mode 100644
index 0000000..c348932
--- /dev/null
+++ b/.github/workflows/ci.yaml
@@ -0,0 +1,33 @@
+name: CI
+
+on:
+ push:
+ workflow_dispatch:
+
+jobs:
+ test:
+ name: Run test
+
+ runs-on: ubuntu-latest
+
+ permissions:
+ contents: write
+ pull-requests: write
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
+
+ - name: Install Nix
+ uses: cachix/install-nix-action@ba0dd844c9180cbf77aa72a116d6fbc515d0e87b # v27
+
+ - name: Install npins
+ run: |
+ nix profile install 'nixpkgs#npins'
+
+ - name: Update npins sources
+ uses: ./.
+ with:
+ sources: "nixpkgs"
+ npins-directory: ./test/npins
+ commit-message: "test: update npins sources"