Skip to content

Commit

Permalink
Tech: encore plus de découpage du workflow GiHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ronnix committed Apr 9, 2021
1 parent b281a9b commit 37b3640
Showing 1 changed file with 35 additions and 9 deletions.
44 changes: 35 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -31,10 +28,6 @@ jobs:
run: |
make install-js
- name: Build
run: |
make build
- name: Run linter
run: |
make lint
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -188,6 +213,7 @@ jobs:
name: Trigger deployment
runs-on: ubuntu-latest
needs:
- checks
- browser-tests-chromium
- browser-tests-firefox
- browser-tests-webkit
Expand Down

0 comments on commit 37b3640

Please sign in to comment.