feat: update github workflow

This commit is contained in:
Anthony Dumas 2023-11-04 15:09:17 +01:00 committed by GitHub
parent 18ea7f0938
commit d4b99aae41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,21 +1,21 @@
name: CV_Web_ADM on:
push:
on: [push, pull_request] branches:
- 'main'
jobs: jobs:
build: deploy_to_main:
runs-on: ubuntu-latest name: Deploy app to the Multirisque main setup
name: Test CV Web Dumas runs-on: self-hosted
steps: steps:
- uses: actions/checkout@v1 - name: Check out the repo
- name: Install requirements uses: actions/checkout@v2
run: npm ci - name: SSH Command
- name: Run tests and collect coverage uses: D3rHase/ssh-command-action@v0.2.2
run: npm run test with:
- name: Upload coverage reports to Codecov host: ${{secrets.HOST}} # Remote server address / ip - required
run: | port: ${{secrets.PORT}} # Remote server port - Default: 22 - optional
# Replace `linux` below with the appropriate OS user: ${{secrets.USER}} # Remote server user - required
# Options are `alpine`, `linux`, `macos`, `windows` private_key: ${{secrets.PRIVATE_KEY}} # Private ssh key registered on the remote server - required
curl -Os https://uploader.codecov.io/latest/linux/codecov host_fingerprint: ${{secrets.HOST_FINGERPRINT}} # Public ssh key fingerprint, viewable via ssh-keyscan -H $HOST -p $PORT - optional
chmod +x codecov command: cd ./docker-data/perso/ && ./updateCV.sh # Command to be executed - Default: echo 'hello world'
./codecov -t ${CODECOV_TOKEN}