Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update generated ci.yml #245

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading