Skip to content

Merge branch 'ui/add-resultats-page' into develop #524

Merge branch 'ui/add-resultats-page' into develop

Merge branch 'ui/add-resultats-page' into develop #524

Workflow file for this run

name: CI
on:
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 18.14.0
- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.3.0
with:
mongodb-version: 4.4.1
- run: yarn --cwd server install
- run: yarn --cwd server test
- name: Send slack notification
uses: act10ns/slack@v1
with:
status: ${{ job.status }}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: failure()
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v2
- name: Get current branch name
uses: ./.github/actions/branchName
id: vars
- name: Request deployment
uses: peter-evans/repository-dispatch@v1
with:
repository: mission-apprentissage/sirius-infra
token: ${{ secrets.DEVOPS_ACCESS_TOKEN }}
event-type: deploy
client-payload: '{"envName": "recette", "branchName":"develop"}'
if: steps.vars.outputs.branchName == 'develop'