Recipe deplacer dans did #138
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: Build and tests | |
on: | |
push: | |
branches: [ master ] | |
tags: | |
- '!*' # Do not execute on tags | |
paths: | |
- src/** | |
- public/** | |
- cypress/** | |
- '.github/**' | |
- '**.json' | |
- '**.js' | |
- '**.jsx' | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [14.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Prepare Code-Climate reporter | |
run: | | |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter | |
chmod +x ./cc-test-reporter | |
./cc-test-reporter before-build | |
- run: npm ci | |
- name: Run tests and report coverage | |
env: | |
CC_TEST_REPORTER_ID: 1ba79968e72f466436bec94526c2234b000886463638859d328819c94bfe3590 | |
run: | | |
npm test | |
./cc-test-reporter after-build --exit-code $? |