diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 02e2bfc..5d46b96 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -1,29 +1,23 @@ -# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions - -name: Node.js CI - +name: Tests on: pull_request: - branches: [ master ] - + push: + branches: + - master jobs: build: - runs-on: ubuntu-latest - strategy: matrix: - node-version: [10.x, 14.x] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ - + node-version: [ '10.15.0' ] steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - - run: npm ci - - run: npm run lint - - run: npm test + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - name: 'Run lint' + run: npm run lint + - name: 'Run tests' + run: npm run test