Skip to content

Commit

Permalink
Merge pull request #156 from josemarluedke/chore/simple-ci
Browse files Browse the repository at this point in the history
Simplify CI
  • Loading branch information
josemarluedke authored Apr 20, 2021
2 parents bd7c95f + bb794c1 commit 1148160
Showing 1 changed file with 13 additions and 23 deletions.
36 changes: 13 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,22 @@ on:
- 'v*'
pull_request: {}

env:
CI: 'true'

jobs:
test:
name: Tests
runs-on: ${{ matrix.os }}

env:
CI: 'true'

strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: volta-cli/action@v1
with:
node-version: 12.x
- name: Install yarn
run: npm install -g yarn
yarn-version: 1.x
- name: Install dependencies
run: yarn install
run: yarn install --frozen-lockfile
- name: Lint JS
run: yarn lint:js
- name: Lint HBS
Expand All @@ -36,7 +31,7 @@ jobs:
run: yarn test

try-scenarios:
name: ${{ matrix.ember-try-scenario }}
name: Compat ${{ matrix.ember-try-scenario }}
runs-on: ubuntu-latest
needs: test

Expand All @@ -47,22 +42,17 @@ jobs:
fail-fast: true
matrix:
ember-try-scenario:
# - ember-3.16
- ember-release
- ember-beta
- ember-canary
- ember-default
# - ember-canary https://github.com/jeffjewiss/ember-cli-postcss/issues/745

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: volta-cli/action@v1
with:
node-version: 12.x
- name: Install yarn
run: npm install -g yarn
yarn-version: 1.x
- name: Install dependencies
run: yarn install
run: yarn install --frozen-lockfile
- name: Test
env:
EMBER_TRY_SCENARIO: ${{ matrix.ember-try-scenario }}
run: yarn try:one $EMBER_TRY_SCENARIO
run: yarn try:one ${{ matrix.ember-try-scenario }} --skip-cleanup

0 comments on commit 1148160

Please sign in to comment.