Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

chore(deps): bump actions/setup-node from 2.1.5 to 4.0.2 #137

chore(deps): bump actions/setup-node from 2.1.5 to 4.0.2

chore(deps): bump actions/setup-node from 2.1.5 to 4.0.2 #137

name: Continuous Integration
on:
push:
branches: [main, develop, "release/*"]
paths-ignore:
- "**.md"
- ".github/**"
- ".vscode/**"
- .dockerignore
- .gitignore
- LICENSE
pull_request:
branches: [main, develop, "release/*"]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x]
fail-fast: true
steps:
- uses: actions/checkout@v2.3.4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4.0.2
with:
node-version: ${{ matrix.node-version }}
check-latest: true
- name: Get yarn cache directory path πŸ› 
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache node_modules πŸ“¦
uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install yarn
run: |
npm -g i yarn
- name: npm install, build and test
run: |
yarn
yarn build
yarn test --coverage
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: run-${{ matrix.node-version }}
parallel: true
finish:
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true