Skip to content

Commit

Permalink
Cleaning up CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rdamazio authored Apr 19, 2024
1 parent c72b883 commit 9771ce2
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,23 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "21.7.3"
cache: 'npm'
- run: npm ci
- name: Install npm dependencies
run: npm ci
- name: Install ProtoC
uses: arduino/setup-protoc@v3
- name: Generate protos
run: |
mkdir -p gen/ts
protoc \
--proto_path=src/model/proto \
--plugin=protoc-gen-ts=node_modules/@protobuf-ts/plugin/bin/protoc-gen-ts \
--ts_out=gen/ts \
src/model/proto/*.proto
- run: npm run build --if-present
- run: npm test
- name: Build
run: npm run build --if-present
- name: Run tests
run: npm run test:headless

0 comments on commit 9771ce2

Please sign in to comment.