diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 59083354..fa6c78d8 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -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 \ No newline at end of file