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

Create node.js.yml #44

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update node.js.yml
  • Loading branch information
zoobot committed Aug 11, 2021
commit fce68f95a3a85fdeb9ef9ad620e0f854adb2dce0
13 changes: 8 additions & 5 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ name: Node.js CI

on:
push:
branches: [ main ]
branches: [ development ]
pull_request:
branches: [ main ]
branches: [ development ]

jobs:
build:

runs-on: ubuntu-latest
runs-on: ubuntu-20.04

strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
node-version: [14.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand All @@ -27,5 +27,8 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm install
- run: npm run eslint
- run: npm test
- run: npm run build --if-present