Actualiser .github/workflows/act.yml
This commit is contained in:
parent
8948ec3f23
commit
d5fa6c6900
6
.github/workflows/act.yml
vendored
Normal file
6
.github/workflows/act.yml
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'master'
|
||||||
|
|
||||||
|
jobs:
|
37
.github/workflows/test.yml
vendored
37
.github/workflows/test.yml
vendored
@ -1,37 +0,0 @@
|
|||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- 'master'
|
|
||||||
|
|
||||||
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:
|
|
||||||
name: Deploy app to the Multirisque main setup
|
|
||||||
runs-on: self-hosted
|
|
||||||
steps:
|
|
||||||
- name: Check out the repo
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
- name: SSH Command
|
|
||||||
uses: D3rHase/ssh-command-action@v0.2.2
|
|
||||||
with:
|
|
||||||
host: ${{secrets.HOST}} # Remote server address / ip - required
|
|
||||||
port: ${{secrets.PORT}} # Remote server port - Default: 22 - optional
|
|
||||||
user: ${{secrets.USER}} # Remote server user - required
|
|
||||||
private_key: ${{secrets.PRIVATE_KEY}} # Private ssh key registered on the remote server - required
|
|
||||||
host_fingerprint: ${{secrets.HOST_FINGERPRINT}} # Public ssh key fingerprint, viewable via ssh-keyscan -H $HOST -p $PORT - optional
|
|
||||||
command: cd ./docker-data/perso/ && ./updateCV.sh # Command to be executed - Default: echo 'hello world'
|
|
Loading…
x
Reference in New Issue
Block a user