Skip to content

Commit

Permalink
Updating the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rafal-k committed Aug 7, 2024
1 parent 34ccc2f commit 7b884c6
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,11 @@ jobs:
- name: Checkout your repository
uses: actions/checkout@v4

- name: Build your project
shell: sh
run: |
set -eu
npm install
npm run build
- name: Deploy your project to the reserved instance
shell: sh
run: |
set -eu
./seed.sh
pos-cli deploy
tests:
needs: ["reserve-ci-instance", "deploy"] # Don't run this job until both the reserve-ci-instance and deploy jobs are done
Expand All @@ -61,18 +54,15 @@ jobs:
UPLOAD_HOST: ${{ secrets.UPLOAD_HOST }}
CI: true
steps:
- name: Checkout your repository
uses: actions/checkout@v4

- name: Run unit tests
shell: sh
run: |
set -eu
npm run ci:test:unit
- name: Clean up after unit tests and prepare environment for E2E tests
shell: sh
run: |
set -e
./seed.sh
- uses: Platform-OS/[email protected]
name: Run E2E tests
if: success() || failure() # Run E2E tests even if unit tests fail, this will allow you to get feedback on the E2E tests
Expand Down

0 comments on commit 7b884c6

Please sign in to comment.