Skip to content

Commit

Permalink
chore: Enhanced GA CI with cache
Browse files Browse the repository at this point in the history
  • Loading branch information
JF-Cozy committed Sep 5, 2024
1 parent 98ec1bb commit ef58a5a
Show file tree
Hide file tree
Showing 5 changed files with 234 additions and 228 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup_argos/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ runs:
if: ${{ steps.cache-node-modules-puppeteer.outputs.cache-hit != 'true' }}
shell: bash
run: |
yarn add puppeteer@"21.11.0" --dev --exact
yarn add puppeteer@"22.15.0" --dev --exact
24 changes: 13 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,35 +59,35 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup_argos
- uses: ./.github/actions/build_cache
- uses: ./.github/actions/build_cache_read
- uses: ./.github/actions/build_argos_desktop_cache
- name: Argos - Create desktop screenshots
run: |
mkdir ./screenshots
mkdir -p ./screenshots
yarn screenshots --mode react --viewport desktop --screenshot-dir ./screenshots/reactDesktop
argosMobile:
needs: [prepareArgos, build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup_argos
- uses: ./.github/actions/build_cache
- uses: ./.github/actions/build_cache_read
- uses: ./.github/actions/build_argos_mobile_cache
- name: Argos - Create mobile screenshots
run: |
mkdir ./screenshots
mkdir -p ./screenshots
yarn screenshots --mode react --viewport 300x600 --screenshot-dir ./screenshots/reactMobile
argosKss:
needs: [prepareArgos, build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup_argos
- uses: ./.github/actions/build_cache
- uses: ./.github/actions/build_cache_read
- uses: ./.github/actions/build_argos_kss_cache
- name: Argos - Create kss screenshots
run: |
mkdir ./screenshots
mkdir -p ./screenshots
yarn screenshots --mode kss --screenshot-dir ./screenshots/kss
argosUpload:
needs: [argosDesktop, argosMobile, argosKss]
Expand All @@ -110,9 +110,11 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup_modules
- uses: ./.github/actions/build_cache
- uses: ./.github/actions/build_cache_read
- name: Deploy
if: ${{ github.ref_name == 'master' }}
run: |
yarn deploy:doc --username cozycloud --email [email protected] --repo https://cozy-bot:[email protected]/cozy/cozy-ui.git
yarn semantic-release
# if: ${{ github.ref_name == 'master' }}
# run: |
# yarn deploy:doc --username cozycloud --email [email protected] --repo https://cozy-bot:[email protected]/cozy/cozy-ui.git
# yarn semantic-release
run: yarn git-directory-deploy --directory ./ --branch build-jf --username cozycloud --email [email protected] --repo https://cozy-bot:[email protected]/cozy/cozy-ui.git

Loading

0 comments on commit ef58a5a

Please sign in to comment.