forked from Delegation-numerique-en-sante/mesconseilscovid
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tech: encore plus de découpage du workflow GiHub Actions
- Loading branch information
Showing
1 changed file
with
35 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,16 +3,13 @@ name: Construire le site | |
on: push | ||
|
||
jobs: | ||
build: | ||
name: Build & checks | ||
checks: | ||
name: Checks | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Inject slug/short variables | ||
uses: rlespinasse/[email protected] | ||
|
||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
|
@@ -31,10 +28,6 @@ jobs: | |
run: | | ||
make install-js | ||
- name: Build | ||
run: | | ||
make build | ||
- name: Run linter | ||
run: | | ||
make lint | ||
|
@@ -71,6 +64,38 @@ jobs: | |
env: | ||
PYTHONUNBUFFERED: "1" | ||
|
||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Inject slug/short variables | ||
uses: rlespinasse/[email protected] | ||
|
||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Set up Node v14 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' | ||
|
||
- name: Install Python dependencies | ||
run: | | ||
make install-python | ||
- name: Install JS dependencies | ||
run: | | ||
make install-js | ||
- name: Build | ||
run: | | ||
make build | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: mesconseilscovid-${{ env.GITHUB_REF_SLUG_URL }}-${{ env.GITHUB_SHA_SHORT }} | ||
|
@@ -188,6 +213,7 @@ jobs: | |
name: Trigger deployment | ||
runs-on: ubuntu-latest | ||
needs: | ||
- checks | ||
- browser-tests-chromium | ||
- browser-tests-firefox | ||
- browser-tests-webkit | ||
|