Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gha: use setup-node
Browse files Browse the repository at this point in the history
wydengyre committed Mar 25, 2024
1 parent e8575d4 commit 9650dfe
Showing 3 changed files with 29 additions and 8 deletions.
22 changes: 22 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
- package-ecosystem: npm
directory: /
schedule:
interval: daily
- package-ecosystem: npm
directory: /examples/node-cli
schedule:
interval: daily
- package-ecosystem: npm
directory: /examples/node-server
schedule:
interval: daily
- package-ecosystem: npm
directory: /examples/web
schedule:
interval: daily
14 changes: 6 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -5,16 +5,14 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache the node_modules dir
uses: actions/cache@v2
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('package-lock.json') }}
node-version-file: '.node-version'
cache: 'npm'
cache-dependency-path: 'package-lock.json'
- name: Install
run: |
sudo apt-get install clang-format ninja-build
npm install
run: sudo apt-get install clang-format ninja-build
- name: Build library
run: make lib
- name: Build examples
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.11.1

0 comments on commit 9650dfe

Please sign in to comment.