Skip to content

Commit

Permalink
ci: jobs must be dependent on each other
Browse files Browse the repository at this point in the history
  • Loading branch information
Krr0ptioN committed Aug 19, 2024
1 parent 438c2b1 commit 57c487e
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ permissions:

jobs:
lint:
environment: staging
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -25,8 +24,8 @@ jobs:
- run: yarn install --frozen-lockfile
- run: yarn nx affected -t lint

test:
environment: staging
build:
needs: ["lint"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -37,10 +36,10 @@ jobs:
node-version: 20
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn nx affected -t test
- run: yarn nx affected -t build

build:
environment: staging
test:
needs: ["build"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -51,10 +50,10 @@ jobs:
node-version: 20
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn nx affected -t build
- run: yarn nx affected -t test

e2e:
environment: staging
needs: ["build","test"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 57c487e

Please sign in to comment.