Skip to content

Commit

Permalink
gha: use setup-node (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
wydengyre authored Mar 26, 2024
1 parent e8575d4 commit f6d5fc2
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 6 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
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ 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
npm ci
- name: Build library
run: make lib
- name: Build examples
Expand Down
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 f6d5fc2

Please sign in to comment.