Skip to content

Commit

Permalink
feat: worklow WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
pom421 authored Dec 7, 2021
1 parent 1330704 commit a7d1d4c
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/netlify-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@ on:
description: 'location'
required: false
default: 'The Octoverse'
simuBranch:
description: "Branche pour la simulation-déclaration"
required: true
default: "master"
declaBranch:
description: "Branche pour la déclaration directe"
required: true
default: "master"
apiUrl:
description: "URL de l'API"
required: true
default: "https://dev.egapro.fabrique.social.gouv.fr/api"

jobs:
say_hello:
Expand All @@ -18,3 +30,21 @@ jobs:
- run: |
echo "Hello ${{ github.event.inputs.name }}!"
echo "- in ${{ github.event.inputs.home }}!"
checkout_build_simu:
runs-on: ubuntu-latest
steps:
- name: Checkout commit
uses: actions/checkout@v2
with:
ref: ${{github.event.inputs.simuBranch}}

- name: Install Dependencies
run: |
yarn install --frozen-lockfile --force --non-interactive
- name: Build app
run: CI=false REACT_APP_EGAPRO_API_URL=${github.event.inputs.REACT_APP_EGAPRO_API_URL} yarn build



0 comments on commit a7d1d4c

Please sign in to comment.