Skip to content

Commit

Permalink
Try using Ubuntu 22.04 to fix CI crash
Browse files Browse the repository at this point in the history
  • Loading branch information
wycats committed Apr 28, 2023
1 parent 6e80d88 commit 1bfa809
Show file tree
Hide file tree
Showing 5 changed files with 327 additions and 160 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/alpha-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
test:
name: Basic Test
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
Expand All @@ -31,7 +31,7 @@ jobs:

release:
name: Tag + Release
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: [test]
steps:
- uses: actions/checkout@v2
Expand Down
145 changes: 53 additions & 92 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:
jobs:
lint:
name: Linting
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
Expand All @@ -37,16 +37,13 @@ jobs:

basic-test:
name: Debug and Prebuilt (All Tests by Package + Canary Features + Optional Jquery)
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14.x
- uses: actions/cache@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
path: '**/node_modules'
key: ci-modules-${{ hashFiles('**/yarn.lock') }}
node-version: 16.x
cache: yarn
- name: install dependencies
run: yarn install --frozen-lockfile --non-interactive
- name: build
Expand All @@ -55,7 +52,7 @@ jobs:
BROCCOLI_ENV: production
run: yarn ember build
- name: Upload build
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v3
with:
name: dist
path: dist
Expand All @@ -66,7 +63,7 @@ jobs:

browserstack-test:
name: Browserstack Tests (Safari, Edge, IE11)
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: [basic-test, lint]
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -95,17 +92,14 @@ jobs:

production-test:
name: Production (All Tests + Canary Features)
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: [basic-test, lint]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14.x
- uses: actions/cache@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
path: '**/node_modules'
key: ci-modules-${{ hashFiles('**/yarn.lock') }}
node-version: 16.x
cache: yarn
- name: install dependencies
run: yarn install --frozen-lockfile --non-interactive
- name: build
Expand All @@ -118,17 +112,14 @@ jobs:

production-debug-render-test:
name: Production (All Tests + Canary Features with Debug Render Tree)
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: [basic-test, lint]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14.x
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ci-modules-${{ hashFiles('**/yarn.lock') }}
node-version: 16.x
cache: yarn
- name: install dependencies
run: yarn install --frozen-lockfile --non-interactive
- name: build
Expand All @@ -142,41 +133,31 @@ jobs:

extend-prototypes-test:
name: Extend Prototypes
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: [basic-test, lint]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14.x
- uses: actions/cache@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
path: '**/node_modules'
key: ci-modules-${{ hashFiles('**/yarn.lock') }}
node-version: 16.x
cache: yarn
- name: install dependencies
run: yarn install --frozen-lockfile --non-interactive
- uses: actions/download-artifact@v1
with:
name: dist
path: dist
- name: test
env:
TEST_SUITE: extend-prototypes
run: yarn test

node-test:
name: Node.js Tests
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: [basic-test, lint]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14.x
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ci-modules-${{ hashFiles('**/yarn.lock') }}
node-version: 16.x
cache: yarn
- name: install dependencies
run: yarn install --frozen-lockfile --non-interactive
- name: build
Expand All @@ -189,39 +170,29 @@ jobs:

blueprint-test:
name: Blueprint Tests
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: [lint]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14.x
- uses: actions/cache@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
path: '**/node_modules'
key: ci-modules-${{ hashFiles('**/yarn.lock') }}
node-version: 16.x
cache: yarn
- name: install dependencies
run: yarn install --frozen-lockfile --non-interactive
- uses: actions/download-artifact@v1
with:
name: dist
path: dist
- name: test
run: yarn test:blueprints

browser-test:
name: Browser Tests (Firefox)
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: [basic-test, lint]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14.x
- uses: actions/cache@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
path: '**/node_modules'
key: ci-modules-${{ hashFiles('**/yarn.lock') }}
node-version: 16.x
cache: yarn
- name: install dependencies
run: yarn install --frozen-lockfile --non-interactive
- uses: actions/download-artifact@v1
Expand All @@ -233,7 +204,7 @@ jobs:

deploy-tag:
name: Deploy tags to npm
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs:
[
basic-test,
Expand All @@ -248,15 +219,11 @@ jobs:
]
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14.x
registry-url: 'https://registry.npmjs.org'
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ci-modules-${{ hashFiles('**/yarn.lock') }}
node-version: 16.x
cache: yarn
- name: install dependencies
run: yarn install --frozen-lockfile --non-interactive
- name: build for publish
Expand All @@ -268,7 +235,7 @@ jobs:

publish:
name: Publish channel to s3
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs:
[
basic-test,
Expand All @@ -284,14 +251,11 @@ jobs:
# Only run on pushes to branches that are not from the cron workflow
if: github.event_name == 'push' && contains(github.ref, 'cron') != true
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14.x
- uses: actions/cache@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
path: '**/node_modules'
key: ci-modules-${{ hashFiles('**/yarn.lock') }}
node-version: 16.x
cache: yarn
- name: install dependencies
run: yarn install --frozen-lockfile --non-interactive
- name: build for publish
Expand All @@ -305,7 +269,7 @@ jobs:

publish-alpha:
name: Publish alpha from default branch
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs:
[
basic-test,
Expand All @@ -321,14 +285,11 @@ jobs:
# Only run on pushes to main
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14.x
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ci-modules-${{ hashFiles('**/yarn.lock') }}
node-version: 16.x
cache: yarn
- name: install dependencies
run: yarn install --frozen-lockfile --non-interactive
- name: build for publish
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
trigger-ci:
name: Trigger cron build
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
"mkdirp": "^1.0.4",
"mocha": "^7.1.2",
"prettier": "^2.1.2",
"puppeteer": "^3.0.4",
"puppeteer": "^19.4.1",
"qunit": "^2.14.0",
"rollup-plugin-commonjs": "^9.3.4",
"rollup-plugin-node-resolve": "^4.2.4",
Expand Down
Loading

0 comments on commit 1bfa809

Please sign in to comment.