Drop 3.12 and earlier from CI #282
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Vertical Collection CI | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
jobs: | |
test: | |
name: Run Tests | |
runs-on: ubuntu-latest | |
timeout-minutes: 12 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Use Volta | |
uses: volta-cli/action@v1 | |
- name: Node Modules Cache | |
id: cache-npm | |
uses: actions/cache@v3 | |
with: | |
path: '**/node_modules' | |
key: ci-yarn-${{ hashFiles('yarn.lock') }} | |
- name: Install Dependencies | |
if: steps.cache-npm.outputs.cache-hit != 'true' | |
run: yarn install --frozen-lockfile | |
- name: Lint | |
run: yarn lint | |
- name: Run Build | |
run: . bin/restore-env.sh && yarn run ember build | |
- name: Run Tests | |
uses: nick-fields/retry@v2 | |
with: | |
timeout_minutes: 2 | |
max_attempts: 5 | |
command: . bin/restore-env.sh && CI=true yarn run ember test --path=dist | |
test-ember-try: | |
name: Run Tests | |
runs-on: ubuntu-latest | |
timeout-minutes: 12 | |
strategy: | |
fail-fast: false | |
matrix: | |
ember-version: | |
[ | |
ember-lts-3.28, | |
ember-lts-4.4, | |
ember-release, | |
ember-beta, | |
ember-canary, | |
] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Use Volta | |
uses: volta-cli/action@v1 | |
- name: Stash yarn.lock for cache key | |
run: cp yarn.lock __cache-key | |
- name: Node Modules Cache | |
id: cache-npm | |
uses: actions/cache@v3 | |
with: | |
path: | | |
node_modules | |
package.json | |
yarn.lock | |
__env | |
key: ci-yarn-v3-${{ matrix.ember-version }}-${{ hashFiles('config/ember-try.js', '__cache-key') }} | |
restore-keys: | | |
ci-yarn-${{ hashFiles('yarn.lock') }} | |
- name: Install Dependencies | |
if: steps.cache-npm.outputs.cache-hit != 'true' | |
run: yarn install --frozen-lockfile | |
- name: Ember-Try Setup | |
if: steps.cache-npm.outputs.cache-hit != 'true' | |
run: node_modules/.bin/ember try:one ${{ matrix.ember-version }} --skip-cleanup --- bin/stash-env.sh | |
- name: Run Build | |
run: . bin/restore-env.sh && yarn run ember build | |
- name: Run Tests | |
uses: nick-fields/retry@v2 | |
with: | |
timeout_minutes: 2 | |
max_attempts: 5 | |
command: . bin/restore-env.sh && CI=true yarn run ember test --path=dist |