This repository was archived by the owner on Oct 13, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 117
chore(INFRA-1282): add release action #193
Open
jluque0101
wants to merge
11
commits into
master
Choose a base branch
from
chore/INFRA-1282-release-action
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
e646a09
chore(INFRA-1282): add release action
jluque0101 8c823c0
chore(INFRA-1282): Update readme, rename to master
jluque0101 4bc054d
chore(INFRA-1282): remove inmutable and unrequired step
jluque0101 19290bd
chore(INFRA-1282): update yarn settings
jluque0101 619b9dd
chore(INFRA-1282): fix
jluque0101 83b4c61
chore(INFRA-1282): add only immutable
jluque0101 07c0d32
cicd-testing
jake-perkins e158d74
v4
jake-perkins 9e927b5
workflow
jake-perkins acd007b
bump nvmrc
jake-perkins 6cd9ee0
node v16
jake-perkins File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,71 @@ | ||
| name: Build, Lint, and Test | ||
|
|
||
| on: | ||
| workflow_call: | ||
|
|
||
| jobs: | ||
| prepare: | ||
| name: Prepare | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| # v4.1.1 | ||
| - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
| - name: Use Node.js | ||
| # v4.0.0 | ||
| uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 | ||
| with: | ||
| node-version-file: '.nvmrc' | ||
| cache: 'yarn' | ||
| - name: Install Yarn dependencies | ||
| run: yarn | ||
|
|
||
| build: | ||
| name: Build | ||
| runs-on: ubuntu-latest | ||
| needs: | ||
| - prepare | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - name: Use Node.js | ||
| uses: actions/setup-node@v3 | ||
| with: | ||
| node-version-file: '.nvmrc' | ||
| cache: 'yarn' | ||
| - run: yarn | ||
| - run: yarn build | ||
| - name: Store build artifact | ||
| uses: actions/upload-artifact@v3 | ||
| with: | ||
| name: build | ||
| path: ./build/ | ||
| - name: Require clean working directory | ||
| shell: bash | ||
| run: | | ||
| if ! git diff --exit-code; then | ||
| echo "Working tree dirty at end of job" | ||
| exit 1 | ||
| fi | ||
|
|
||
| test: | ||
| name: Test | ||
| runs-on: ubuntu-latest | ||
| needs: | ||
| - prepare | ||
| steps: | ||
| # v4.1.1 | ||
| - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
| - name: Use Node.js | ||
| # v4.0.0 | ||
| uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 | ||
| with: | ||
| node-version-file: '.nvmrc' | ||
| cache: 'yarn' | ||
| - run: yarn --immutable --immutable-cache | ||
|
jluque0101 marked this conversation as resolved.
Outdated
|
||
| - run: yarn test | ||
| - name: Require clean working directory | ||
| shell: bash | ||
| run: | | ||
| if ! git diff --exit-code; then | ||
| echo "Working tree dirty at end of job" | ||
| exit 1 | ||
| fi | ||
This file contains hidden or 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,47 @@ | ||
| name: Main | ||
|
|
||
| on: | ||
| pull_request: | ||
| push: | ||
| branches: [master] | ||
|
|
||
| jobs: | ||
| check-workflows: | ||
| name: Check workflows | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| # v4.1.1 | ||
| - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
| - name: Download actionlint | ||
| id: download-actionlint | ||
| run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/7fdc9630cc360ea1a469eed64ac6d78caeda1234/scripts/download-actionlint.bash) 1.6.23 | ||
| shell: bash | ||
| - name: Check workflow files | ||
| run: ${{ steps.download-actionlint.outputs.executable }} -color | ||
| shell: bash | ||
|
|
||
| build-test: | ||
| name: Build and test | ||
| uses: ./.github/workflows/build-test.yml | ||
|
|
||
| release-uat: | ||
| name: UAT Release | ||
| uses: ./.github/workflows/release.yml | ||
| needs: [ build-test ] | ||
| if: github.ref == 'refs/heads/master' | ||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
| with: | ||
| environment: uat | ||
|
|
||
| release-prd: | ||
| name: PRD Release | ||
| uses: ./.github/workflows/release.yml | ||
| needs: [ build-test, release-uat ] | ||
| if: github.ref == 'refs/heads/master' | ||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
| with: | ||
| environment: prd |
This file contains hidden or 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,30 @@ | ||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| environment: | ||
| required: true | ||
| description: Environment name | ||
| type: string | ||
| jobs: | ||
| deploy: | ||
| name: Deploy | ||
| runs-on: ubuntu-latest | ||
| environment: | ||
| name: ${{ inputs.environment }} | ||
| steps: | ||
| - name: configure AWS credentials | ||
| # v4.0.1 | ||
| uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a | ||
| with: | ||
| role-to-assume: ${{ vars.AWS_ROLE_ARN }} | ||
| role-session-name: ghactionssession | ||
| aws-region: ${{ vars.AWS_REGION }} | ||
| - name: download build artifact | ||
| uses: actions/download-artifact@v3 | ||
| with: | ||
| name: build | ||
| path: ./build/ | ||
| - name: Deploy website | ||
| run: | | ||
| aws s3 cp ./build/ s3://${{ vars.AWS_BUCKET_NAME }}/ --recursive --acl private | ||
| aws cloudfront create-invalidation --distribution-id ${{ vars.AWS_CF_DISTRIBUTION_ID }} --paths "/" |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.