chore(deps): update actions/setup-node action to v4 #111
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: tests | |
on: | |
push: | |
branches: [ master, renovate/** ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
test: | |
name: Tests | |
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: [ 14, 16 ] | |
steps: | |
- name: Checkout Source code | |
uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Cache node_modules | |
uses: actions/cache@v3 | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.os }}-${{ matrix.node-version }}-modules-${{ hashFiles('**/yarn.lock') }} | |
- name: Init docker | |
run: docker-compose up -d | |
- name: Install | |
run: yarn | |
- name: Test | |
run: yarn test | |
- name: Teardown docker | |
run: docker-compose down |