Skip to content

Commit

Permalink
Merge pull request #1501 from mydea/fn/improve-ci-workflow
Browse files Browse the repository at this point in the history
Improve CI workflow
  • Loading branch information
cibernox authored Feb 1, 2022
2 parents a8dc045 + c0eeee5 commit c2f917e
Showing 1 changed file with 38 additions and 37 deletions.
75 changes: 38 additions & 37 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,49 +12,51 @@ on:
branches:
- master
schedule:
- cron: '0 3 * * 0' # every Sunday at 3am
- cron: "0 3 * * 0" # every Sunday at 3am

env:
CI: true

concurrency:
group: ci-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
tests:
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
name: Base Tests
timeout-minutes: 60
timeout-minutes: 10
runs-on: ubuntu-latest
strategy:
matrix:
node:
- "12"
- "14"
- "12"
- "14"
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Reconfigure git to use HTTP authentication
run: >
git config --global url."https://github.com/".insteadOf
ssh://[email protected]/
- uses: volta-cli/action@v1
with:
node-version: ${{ matrix.node }}

- run: npm ci

- name: Test with ${{ matrix.node }}
run: npm run test
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Reconfigure git to use HTTP authentication
run: >
git config --global url."https://github.com/".insteadOf
ssh://[email protected]/
- uses: volta-cli/action@v1
with:
node-version: ${{ matrix.node }}

- run: npm ci

- name: Ember Test with ${{ matrix.node }}
run: npm run test:ember

- name: Node Tests with Node ${{ matrix.node }}
run: npm run nodetest

floating-dependencies:
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
name: Floating Dependencies
timeout-minutes: 60
timeout-minutes: 10
runs-on: ubuntu-latest
strategy:
matrix:
node:
- "12"
- "14"
needs: tests

steps:
- uses: actions/checkout@v2
Expand All @@ -66,20 +68,21 @@ jobs:
ssh://[email protected]/
- uses: volta-cli/action@v1
with:
node-version: ${{ matrix.node }}
node-version: 14

- run: npm install
- run: npm install --lock-file=false

- name: Ember Tests
run: npm run test:ember

- name: Test with Node ${{ matrix.node }}
run: npm run test
- name: Node Tests
run: npm run nodetest

try-scenarios:
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
name: "Compatibility"
timeout-minutes: 60
timeout-minutes: 10
runs-on: ubuntu-latest
needs: tests

strategy:
fail-fast: true
matrix:
Expand All @@ -88,10 +91,9 @@ jobs:
- ember-lts-3.20
- ember-release
- ember-beta
# - ember-canary
- node-tests
- ember-canary
- embroider-safe
# - ember-classic

steps:
- uses: actions/checkout@v2
with:
Expand All @@ -108,7 +110,6 @@ jobs:
- name: test
run: node_modules/.bin/ember try:one ${{ matrix.ember-try-scenario }} --skip-cleanup


publish:
name: Release
runs-on: ubuntu-latest
Expand Down

0 comments on commit c2f917e

Please sign in to comment.