-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #177 from quid/chore/QUID-28018-migrate-ci-cd-pipe…
…lines-to-github-actions-and-argo-cd chore: migrate ci/cd pipelines to github actions and argo cd
- Loading branch information
Showing
38 changed files
with
262 additions
and
43 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,75 @@ | ||
name: ci | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
tags: | ||
- '**' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
cancel: | ||
runs-on: public-runner | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
all_but_latest: true | ||
|
||
test-and-deploy: | ||
runs-on: public-runner | ||
steps: | ||
- name: Checkout Master | ||
uses: actions/checkout@v4 | ||
if: ${{ github.ref == 'refs/heads/master' }} | ||
with: | ||
fetch-depth: 50 | ||
|
||
- name: Checkout Non-Master | ||
uses: actions/checkout@v4 | ||
if: ${{ github.ref != 'refs/heads/master' }} | ||
|
||
- name: Install Yarn | ||
run: | | ||
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.17.3 | ||
echo "$HOME/.yarn/bin" >> $GITHUB_PATH | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 11.10.1 | ||
|
||
- name: Install Dependencies | ||
run: | | ||
yarn --frozen-lockfile | ||
npm install -g [email protected] | ||
npm install -g react-app-rewired@^2.1.1 | ||
npm install -g react-scripts@^3.0.1 | ||
- name: Type Checks and Unit Tests | ||
run: | | ||
flow check | ||
react-app-rewired test --coverage --colors | ||
- name: Build | ||
if: ${{ github.ref == 'refs/heads/master' }} | ||
run: yarn build | ||
|
||
- name: Publish gh-pages | ||
if: ${{ github.ref == 'refs/heads/master' }} | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./styleguide | ||
keep_files: true | ||
user_name: 'quid-bot' | ||
user_email: '[email protected]' | ||
cname: ui.quid.com | ||
|
||
- name: Publish to npm | ||
if: ${{ github.ref == 'refs/heads/master' }} | ||
run: | | ||
export GITHUB_NAME=quid-bot | ||
export [email protected] | ||
export AUTOMATED_WRITE_AUTH=${{ secrets.AUTOMATED_WRITE_AUTH }} | ||
scripts/deploy.sh |
File renamed without changes.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.