Skip to content

Commit fa9c42c

Browse files
committed
feat: add nix ci build
1 parent 1c661d1 commit fa9c42c

File tree

2 files changed

+29
-15
lines changed

2 files changed

+29
-15
lines changed

.github/workflows/ci.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: 'nix build'
2+
3+
on:
4+
push:
5+
branches: ['master']
6+
pull_request:
7+
branches: ['master']
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: DeterminateSystems/nix-installer-action@main
15+
- name: install omnix
16+
run: nix profile install nixpkgs#omnix
17+
- run: om ci

.github/workflows/node.yml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3-
4-
name: Node.js CI
1+
name: node.js build
52

63
on:
74
push:
8-
branches: [ "master" ]
5+
branches: ['master']
96
pull_request:
10-
branches: [ "master" ]
7+
branches: ['master']
118

129
jobs:
1310
build:
@@ -16,12 +13,12 @@ jobs:
1613
matrix:
1714
node-version: [18.x, 20.x, 22.x]
1815
steps:
19-
- uses: actions/checkout@v4
20-
- name: Use Node.js ${{ matrix.node-version }}
21-
uses: actions/setup-node@v4
22-
with:
23-
node-version: ${{ matrix.node-version }}
24-
cache: 'npm'
25-
- run: npm ci
26-
- run: npm run build --if-present
27-
- run: npm test
16+
- uses: actions/checkout@v4
17+
- name: use node.js ${{ matrix.node-version }}
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: ${{ matrix.node-version }}
21+
cache: 'npm'
22+
- run: npm ci
23+
- run: npm run build --if-present
24+
- run: npm test

0 commit comments

Comments
 (0)