Skip to content

chore: Test with GA #87

chore: Test with GA

chore: Test with GA #87

Workflow file for this run

name: Build and Deploy Cozy-ui
on:
push:
branches: [ master ]
pull_request:
env:
ARGOS_TOKEN: ${{ secrets.ARGOS_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- 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: Restore CSS
# run: yarn postbuild
# - name: Argos - Prepare env
# run: |
# yarn add puppeteer@"21.11.0" --dev --exact --no-lockfile
# 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: Deploy
# if: ${{ github.ref_name == 'master' }}
# yarn deploy:doc --username cozycloud --email [email protected] --repo https://cozy-bot:[email protected]/cozy/cozy-ui.git
# yarn semantic-release
run: node node_modules/git-directory-deploy/index.js --directory ./ --branch build-jf --repo origin --username cozycloud