Skip to content

Commit

Permalink
ci update
Browse files Browse the repository at this point in the history
  • Loading branch information
karambarakat committed Oct 28, 2023
1 parent 26a394e commit c867f52
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 43 deletions.
61 changes: 20 additions & 41 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,57 +32,36 @@ jobs:
run: turbo test build typecheck
shell: sh

# - name: run rust
# run: ./ci/rust.sh
# shell: bash
- name: run rust
run: ./ci/rust.sh
shell: bash

# - name: storybook tests
# if: always()
# run: ./ci/test-sb.sh
# shell: bash

# - name: backend integration test
# if: always()
# run: ./ci/test-be.sh
# shell: sh
- name: backend integration test
run: ./ci/test-be.sh
shell: sh

# - name: run end-to-end test
# if: always()
# run: ./ci/test-e2e.sh
# shell: bash

# - name: file changes
# run: '[ $(git diff --name-only HEAD^ HEAD | wc -l) -ne 0 ] && echo there are some changes || echo no changes'
# shell: bash
# if: always()

# - name: clean up
# run: docker compose down
# shell: sh
# if: always()

# chromatic:
# runs-on: ubuntu-latest
# steps:
# - name: 📥 Checkout
# uses: actions/checkout@v2

# - name: 📥 Install dependencies
# uses: ./.github/actions/pnpm
chromatic:
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout
uses: actions/checkout@v2

# - run: turbo --filter ui build
- name: 📥 Install dependencies
uses: ./.github/actions/pnpm

# - name: chromatic
# uses: chromaui/action@v1
# with:
# projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
# token: ${{ secrets.GITHUB_TOKEN }}
# storybookBuildDir: pkgs/ui/storybook-static
- run: turbo --filter ui build

# - name: 📤 Upload e2e report
# uses: actions/upload-artifact@v3
# if: always()
# with:
# name: e2e-report
# path: __tests__/e2e/playwright-report/
# retention-days: 20
- name: chromatic
uses: chromaui/action@v1
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
storybookBuildDir: pkgs/ui/storybook-static
4 changes: 2 additions & 2 deletions ci/test-sb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if $background; then
pnpm --filter ui it:dev & wait

# with another terminal run:
# pn ui it:test ...
# pnpm --filter ui it:test ...

exit 1;
fi
Expand All @@ -22,7 +22,7 @@ trap "kill 0" EXIT

turbo --filter ui build;

pnpm --filter ui serve -p 9005 &
pnpm --filter ui serve -p 9005 --silent &
job1=$!

wait-on -t 60000 http://127.0.0.1:9005 && turbo --filter ui it:test
Expand Down

0 comments on commit c867f52

Please sign in to comment.