name: test on: [push, pull_request] jobs: build: runs-on: ubuntu-latest services: redis: image: redis ports: - 6379/tcp options: --entrypoint redis-server strategy: matrix: node-version: [10.x, 12.x] steps: - uses: actions/checkout@v1 - uses: actions/setup-python@v1 - uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - run : sudo apt-get update & sudo apt-get install -y libgbm-dev - run : yarn install - run: npm run test env: REDIS_URL: redis://localhost:${{ job.services.redis.ports[6379] }}/ - name: Upload coverage to Codecov uses: codecov/codecov-action@v1 with: token: ${{ secrets.CODECOV_TOKEN }}