Skip to content

Commit

Permalink
fix: Fix Github Action
Browse files Browse the repository at this point in the history
  • Loading branch information
Ldoppea committed Aug 12, 2024
1 parent f66c47e commit 6c787a3
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 29 deletions.
64 changes: 36 additions & 28 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,34 +17,42 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
# - name: Install packages
# run: yarn install --frozen-lockfile
# - name: Lint
# run: yarn lint
# - name: Build JS/CSS/DOCS
# run: yarn build:all
# - name: Tests without snapshots
# run: yarn test:noSnapshots
# - name: Tests snapshots
# run: yarn test:snapshots
# # - name: Bundlemon
# # run: yarn bundlemon
# - name: Argos - Prepare env
# run: |
# yarn add puppeteer@"21.11.0" --dev --exact
# mkdir ./screenshots
# - name: Argos - Create desktop screenshots
# run: yarn screenshots --mode react --viewport desktop --screenshot-dir ./screenshots/reactDesktop
# - name: Argos - Create mobile screenshots
# run: yarn screenshots --mode react --viewport 300x600 --screenshot-dir ./screenshots/reactMobile
# - name: Argos - Create kss screenshots
# run: yarn screenshots --mode kss --screenshot-dir ./screenshots/kss
# - name: Argos - Upload all screenshots
# run: |
# UUID=$(uuidgen)
# yarn argos:upload --parallel screenshots/reactDesktop/ --token $ARGOS_TOKEN --parallel-total 3 --parallel-nonce $GITHUB_RUN_ID-${UUID} --ignore ''
# yarn argos:upload --parallel screenshots/reactMobile/ --token $ARGOS_TOKEN --parallel-total 3 --parallel-nonce $GITHUB_RUN_ID-${UUID} --ignore ''
# yarn argos:upload --parallel screenshots/kss/ --token $ARGOS_TOKEN --parallel-total 3 --parallel-nonce $GITHUB_RUN_ID-${UUID} --ignore ''
- name: Install packages
run: yarn install --frozen-lockfile
- name: Lint
run: yarn lint
- name: Build JS/CSS/DOCS
run: yarn build:all
- name: Tests without snapshots
run: yarn test:noSnapshots
- name: Tests snapshots
run: yarn test:snapshots
# - name: Bundlemon
# run: yarn bundlemon
- name: Restore CSS
run: yarn postbuild
- name: Argos - Prepare env
run: |
yarn add puppeteer@"21.11.0" --dev --exact
mkdir ./screenshots
- name: Argos - Create desktop screenshots
run: yarn screenshots --mode react --viewport desktop --screenshot-dir ./screenshots/reactDesktop
- name: Argos - Create mobile screenshots
run: yarn screenshots --mode react --viewport 300x600 --screenshot-dir ./screenshots/reactMobile
- name: Argos - Create kss screenshots
run: yarn screenshots --mode kss --screenshot-dir ./screenshots/kss
- name: Argos - Upload all screenshots
run: |
UUID=$(uuidgen)
yarn argos:upload --parallel screenshots/reactDesktop/ --token $ARGOS_TOKEN --parallel-total 3 --parallel-nonce $GITHUB_RUN_ID-${UUID} --ignore ''
yarn argos:upload --parallel screenshots/reactMobile/ --token $ARGOS_TOKEN --parallel-total 3 --parallel-nonce $GITHUB_RUN_ID-${UUID} --ignore ''
yarn argos:upload --parallel screenshots/kss/ --token $ARGOS_TOKEN --parallel-total 3 --parallel-nonce $GITHUB_RUN_ID-${UUID} --ignore ''
- name: Upload Stylesheet artifact to GitHub
uses: actions/upload-artifact@v3
with:
name: Stylesheet
path: |
transpiled/react/stylesheet.css
# - name: Deploy
# if: ${{ github.ref_name == 'master' }}
# run: |
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@
"postcss-loader": "2.1.6",
"pretty": "2.0.0",
"prop-types": "15.7.2",
"puppeteer": "21.11.0",
"react": "16.12.0",
"react-dom": "16.12.0",
"react-hot-loader": "^4.3.11",
Expand Down

0 comments on commit 6c787a3

Please sign in to comment.