Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deps and CI settings #308

Merged
merged 7 commits into from
Apr 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
21 changes: 16 additions & 5 deletions .github/workflows/nodejs.yml
Expand Up @@ -12,20 +12,31 @@ on:
jobs:
test:
name: Lint and test

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up node
uses: actions/setup-node@v2
uses: actions/checkout@v3

- name: Get Node.js version from package.json
run: |
node -p 'require("./package.json").engines.node' | tee .node-version

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
node-version-file: .node-version
cache: npm

- name: Install latest npm
run: npm install --global npm@latest

- name: Install dependencies
run: npm ci --force
run: npm ci

- name: Lint
run: npm run lint

- name: Test
run: npm test