-
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.
Make the built locale files available in CI
Note the files are currently unused. Refs #1817, unsplash/intlc#208
- Loading branch information
1 parent
5b8e475
commit 4e8997f
Showing
2 changed files
with
96 additions
and
0 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 |
---|---|---|
|
@@ -58,6 +58,45 @@ jobs: | |
name: manifest | ||
path: src/manifest.json | ||
|
||
build-locales: | ||
name: 'Build locales' | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 30 | ||
|
||
steps: | ||
- name: 'Checkout code' | ||
uses: actions/[email protected] | ||
|
||
- name: 'Set up Docker Build' | ||
uses: docker/[email protected] | ||
|
||
- name: 'Build intlc image' | ||
id: build | ||
uses: docker/[email protected] | ||
env: | ||
DOCKER_BUILD_SUMMARY: false | ||
with: | ||
context: . | ||
target: build-intlc | ||
outputs: type=docker | ||
cache-from: type=gha,ignore-error=true | ||
cache-to: type=gha,mode=max,ignore-error=true | ||
|
||
- name: 'Create container' | ||
id: container | ||
run: | | ||
container=$(docker container create "${{ steps.build.outputs.imageid }}") | ||
echo "container=$container" >> $GITHUB_OUTPUT | ||
- name: 'Copy files' | ||
run: docker container cp ${{ steps.container.outputs.container }}:/app/src/ . | ||
|
||
- name: 'Upload locales' | ||
uses: actions/[email protected] | ||
with: | ||
name: locales | ||
path: src/locales | ||
|
||
build-image: | ||
name: 'Build image' | ||
runs-on: ubuntu-22.04 | ||
|
@@ -135,6 +174,7 @@ jobs: | |
timeout-minutes: 30 | ||
needs: | ||
- build-assets | ||
- build-locales | ||
|
||
steps: | ||
- name: 'Checkout code' | ||
|
@@ -155,6 +195,12 @@ jobs: | |
name: manifest | ||
path: src | ||
|
||
- name: 'Download locales' | ||
uses: actions/[email protected] | ||
with: | ||
name: locales | ||
path: src/locales | ||
|
||
- name: 'Run the linter' | ||
run: npm run lint:ts | ||
|
||
|
@@ -164,6 +210,7 @@ jobs: | |
timeout-minutes: 30 | ||
needs: | ||
- build-assets | ||
- build-locales | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -188,6 +235,12 @@ jobs: | |
name: manifest | ||
path: src | ||
|
||
- name: 'Download locales' | ||
uses: actions/[email protected] | ||
with: | ||
name: locales | ||
path: src/locales | ||
|
||
- name: 'Run the tests' | ||
run: npm run test -- --shard=${{ matrix.shard }}/${{ strategy.job-total }} | ||
|
||
|
@@ -197,6 +250,7 @@ jobs: | |
timeout-minutes: 30 | ||
needs: | ||
- build-assets | ||
- build-locales | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -227,6 +281,12 @@ jobs: | |
name: manifest | ||
path: src | ||
|
||
- name: 'Download locales' | ||
uses: actions/[email protected] | ||
with: | ||
name: locales | ||
path: src/locales | ||
|
||
- name: 'Run Playwright' | ||
id: 'playwright' | ||
uses: docker://mcr.microsoft.com/playwright:v1.42.1-jammy | ||
|
@@ -269,6 +329,7 @@ jobs: | |
timeout-minutes: 30 | ||
needs: | ||
- build-assets | ||
- build-locales | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -299,6 +360,12 @@ jobs: | |
name: manifest | ||
path: src | ||
|
||
- name: 'Download locales' | ||
uses: actions/[email protected] | ||
with: | ||
name: locales | ||
path: src/locales | ||
|
||
- name: 'Run Playwright' | ||
id: 'playwright' | ||
uses: docker://mcr.microsoft.com/playwright:v1.42.1-jammy | ||
|
@@ -345,6 +412,7 @@ jobs: | |
timeout-minutes: 30 | ||
needs: | ||
- build-assets | ||
- build-locales | ||
|
||
steps: | ||
- name: 'Checkout code' | ||
|
@@ -365,6 +433,12 @@ jobs: | |
name: manifest | ||
path: src | ||
|
||
- name: 'Download locales' | ||
uses: actions/[email protected] | ||
with: | ||
name: locales | ||
path: src/locales | ||
|
||
- name: 'Run typechecker' | ||
run: npm run typecheck | ||
|
||
|
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