Skip to content

Commit

Permalink
setup ember-try for backport version
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Jun 1, 2023
1 parent 26a6c70 commit ed85aeb
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 13 deletions.
39 changes: 36 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,10 @@ jobs:
runs-on: ubuntu-latest
needs: test
strategy:
fail-fast: false
matrix:
scenario:
- 'ember-release'
- 'ember-beta'
- 'ember-canary'
- 'ember-lts-3.28'
- 'ember-default-with-jquery'
steps:
- uses: actions/checkout@v2
Expand All @@ -60,3 +59,37 @@ jobs:
- run: npm ci
- name: Test
run: npx ember try:one $EMBER_TRY_SCENARIO ${{ matrix.scenario }}

allow-fail-try-scenarios:
name: ${{ matrix.try-scenario }} - Allowed to fail
runs-on: ubuntu-latest
needs: 'test'

permissions:
pull-requests: write

strategy:
fail-fast: false
matrix:
try-scenario:
- ember-release
- ember-beta
- ember-canary
- ember-release-no-deprecations

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
- run: npm ci
- name: Run Tests
id: tests
run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }}
continue-on-error: true
- uses: mainmatter/continue-on-error-comment@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
outcome: ${{ steps.tests.outcome }}
test-id: ${{ matrix.try-scenario }}
12 changes: 2 additions & 10 deletions config/ember-try.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,10 @@ module.exports = async function() {
return {
scenarios: [
{
name: 'ember-lts-3.4',
name: 'ember-lts-3.28',
npm: {
devDependencies: {
'ember-source': '~3.4.0'
}
}
},
{
name: 'ember-lts-3.8',
npm: {
devDependencies: {
'ember-source': '~3.8.0'
'ember-source': '~3.28.0'
}
}
},
Expand Down

0 comments on commit ed85aeb

Please sign in to comment.