Skip to content

Commit

Permalink
Update generated ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli authored Dec 20, 2023
1 parent b1168b4 commit e110a81
Showing 1 changed file with 34 additions and 11 deletions.
45 changes: 34 additions & 11 deletions tests/fixtures/pnpm/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,36 +12,59 @@ concurrency:
cancel-in-progress: true

jobs:
# Fills the dep cache so parallel jobs can start faster
# also, if we have a lockfile issue, it's not worth trying the rust of the CI Jobs
setup:
name: "Setup"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: wyvox/action-setup-pnpm@v3
with:
node-version: 20

test:
name: "Tests"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: wyvox/action-setup-pnpm@v3
with:
node-version: 16
- name: Lint
run: pnpm lint
node-version: 20
- name: Run Tests
run: pnpm test

lint:
name: "Lint"
runs-on: ubuntu-latest
needs: [setup]

steps:
- uses: actions/checkout@v4
- uses: wyvox/action-setup-pnpm@v3
with:
node-version: 20
- name: Lint
run: pnpm lint

floating:
name: "Floating Dependencies"
runs-on: ubuntu-latest
needs: [test]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: wyvox/action-setup-pnpm@v3
with:
node-version: 16
- name: Run Tests
run: pnpm test
args: '--no-lockfile'
node-version: 20
- run: pnpm test

try-scenarios:
name: ${{ matrix.try-scenario }}
runs-on: ubuntu-latest
needs: 'test'
needs: [test]

strategy:
fail-fast: false
Expand All @@ -56,10 +79,10 @@ jobs:
- embroider-optimized

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: wyvox/action-setup-pnpm@v3
with:
node-version: 16
node-version: 20
- name: Run Tests
run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }} --skip-cleanup
working-directory: test-app

0 comments on commit e110a81

Please sign in to comment.