Skip to content

Commit

Permalink
Fix github actions job
Browse files Browse the repository at this point in the history
  • Loading branch information
bluepnume committed Dec 13, 2021
1 parent 55424e3 commit 3624f50
Showing 1 changed file with 26 additions and 22 deletions.
48 changes: 26 additions & 22 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,34 @@
name: Node.js CI

on:
# run on push but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]

branches:
- master
# run for every pull request
pull_request: {}
jobs:
build:

main:
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v2
with:
fetch-depth: 0

strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
- name: ⎔ Setup node
uses: actions/setup-node@v2
with:
node-version: '14'
registry-url: 'https://registry.npmjs.org'

steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: install
uses: bahmutov/npm-install@v1
with:
useLockFile: false
- run: npm test
- name: 📥 Download deps
uses: bahmutov/npm-install@v1
with:
useLockFile: false

- name: ▶️ Run flow-typed script
run: npm run flow-typed

- name: ▶️ Run test script
run: npm run test

0 comments on commit 3624f50

Please sign in to comment.