Update test.yml
This commit is contained in:
parent
d4b99aae41
commit
28151c4e2d
18
.github/workflows/test.yml
vendored
18
.github/workflows/test.yml
vendored
@ -1,9 +1,25 @@
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'main'
|
- 'master'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Test CV Web Dumas
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- name: Install requirements
|
||||||
|
run: npm ci
|
||||||
|
- name: Run tests and collect coverage
|
||||||
|
run: npm run test
|
||||||
|
- name: Upload coverage reports to Codecov
|
||||||
|
run: |
|
||||||
|
# Replace `linux` below with the appropriate OS
|
||||||
|
# Options are `alpine`, `linux`, `macos`, `windows`
|
||||||
|
curl -Os https://uploader.codecov.io/latest/linux/codecov
|
||||||
|
chmod +x codecov
|
||||||
|
./codecov -t ${CODECOV_TOKEN}
|
||||||
deploy_to_main:
|
deploy_to_main:
|
||||||
name: Deploy app to the Multirisque main setup
|
name: Deploy app to the Multirisque main setup
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
|
Loading…
x
Reference in New Issue
Block a user