Skip to content

Instantly share code, notes, and snippets.

@Yengas
Last active January 6, 2021 09:56
Show Gist options
  • Save Yengas/47aba0635be39b8c3ce327493e62d906 to your computer and use it in GitHub Desktop.
Save Yengas/47aba0635be39b8c3ce327493e62d906 to your computer and use it in GitHub Desktop.
name: 'Lint and Tests'
on: push
jobs:
test:
name: Lint and Test Code Base
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-${{ matrix.node-version }}-modules-${{ hashFiles('**/package-lock.json') }}
- run: npm ci
- run: npm test
env: {CI: 'true'}
- run: npm run test:integration
env: {CI: 'true'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment