-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release/2022 04
- Loading branch information
Showing
29 changed files
with
954 additions
and
372 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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: CI | ||
|
||
# Controls when the workflow will run | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the main & develop branch | ||
pull_request: | ||
branches: [main, develop] | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-node@v2 | ||
name: Setup node v16 | ||
with: | ||
node-version: "16" | ||
|
||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
|
||
- uses: actions/cache@v2 | ||
id: cache # use this to check for `cache-hit` (`steps.cache.outputs.cache-hit != 'true'`) | ||
with: | ||
path: | | ||
**/node_modules | ||
${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('package.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: Check package.json | ||
run: yarn check-package | ||
|
||
# Runs a single command using the runners shell | ||
- name: Prepare openIMIS Dependencies | ||
run: yarn load-config | ||
|
||
- name: Install dependencies | ||
run: yarn install # Since we edit package.json with the openIMIS deps, we cannot use --frozen-lockfile | ||
|
||
- name: Build | ||
run: yarn build | ||
|
||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: frontend-${{github.run_number}}-${{github.sha}} | ||
path: ./build/* |
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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-node@v2 | ||
name: Setup node v16 | ||
with: | ||
node-version: "16" | ||
|
||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
|
||
- uses: actions/cache@v2 | ||
id: cache # use this to check for `cache-hit` (`steps.cache.outputs.cache-hit != 'true'`) | ||
with: | ||
path: | | ||
**/node_modules | ||
${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('package.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: Check package.json | ||
run: yarn check-package | ||
|
||
# Runs a single command using the runners shell | ||
- name: Prepare openIMIS Dependencies | ||
run: yarn load-config | ||
|
||
- name: Install dependencies | ||
run: yarn install # Since we edit package.json with the openIMIS deps, we cannot use --frozen-lockfile | ||
|
||
- name: Build | ||
run: yarn build | ||
|
||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: frontend-${GITHUB_REF_NAME_SLUG}-${{github.sha}} | ||
path: ./build/* |
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
node_modules | ||
build | ||
yarn* | ||
yarn-error.log | ||
modules-installs.txt | ||
modules-links.txt | ||
modules-removes.txt | ||
modules-unlinks.txt | ||
src/modules.js | ||
src/locales.js | ||
.idea | ||
package-lock.json | ||
yarn.lock |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"trailingComma": "all", | ||
"printWidth": 120, | ||
"quoteProps": "preserve", | ||
"arrowParens": "always" | ||
} |
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
Oops, something went wrong.