Skip to content

Commit

Permalink
chore(gh): downgrade ubuntu to version 20.04 (#10983)
Browse files Browse the repository at this point in the history
  • Loading branch information
kennylam authored Sep 28, 2023
1 parent de9f17c commit dab2a00
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/add-to-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env:
jobs:
add-to-dotcom-project:
name: Add issue to Dotcom project
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/[email protected]
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ concurrency:

jobs:
check-packages:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
Expand All @@ -29,7 +29,7 @@ jobs:
yarn ci-check
yarn lerna run --ignore=@carbon/ibmdotcom-web-components ci-check
web-components:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
Expand All @@ -46,7 +46,7 @@ jobs:
- name: Run basic checks
run: xvfb-run --auto-servernum yarn lerna run --stream --prefix --verbose --scope=@carbon/ibmdotcom-web-components ci-check
a11y:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ concurrency:
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
permissions:
actions: read
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dco.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
DCOAssistant:
if: github.repository == 'carbon-design-system/carbon-for-ibm-dotcom'
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: "DCO Assistant"
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the DCO Document and I hereby sign the DCO') || github.event_name == 'pull_request_target'
Expand Down
27 changes: 13 additions & 14 deletions .github/workflows/e2e-tests-parallel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ jobs:
with:
name: storybook-build
path: packages/web-components/storybook-static

- name: Clear remnant failure files
uses: geekyeggo/delete-artifact@v2
with:
name: failure-wc.txt
name: failure-wc.txt

web-components-tests:
runs-on: macos-latest
Expand All @@ -87,7 +87,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
cache: 'yarn'

- name: Download the build folders
uses: actions/download-artifact@v3
Expand All @@ -106,7 +106,7 @@ jobs:
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn
- name: 'Run e2e tests (chromium)'
if: matrix.browser == 'chromium'
id: cypress-tests-wc
Expand All @@ -132,11 +132,11 @@ jobs:

- name: Exit upon failure
if: steps.cypress-tests-wc.outcome == 'failure'
run: exit 1
run: exit 1

wc-tests-completed:
if: always()
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: web-components-tests
steps:
- uses: actions/download-artifact@v3
Expand All @@ -158,7 +158,7 @@ jobs:
install-react:
strategy:
matrix:
os: [ ubuntu-latest ]
os: [ ubuntu-20.04 ]
node-version: [ 18.x ]
browser: [ chromium ]
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -202,18 +202,18 @@ jobs:
- name: Clear remnant failure files
uses: geekyeggo/delete-artifact@v2
with:
name: failure-react.txt
name: failure-react.txt

react-tests:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: install-react
continue-on-error: true
strategy:
fail-fast: false
matrix:
# run copies of the current job in parallel
containers: [1, 2, 3, 4, 5]
os: [ ubuntu-latest ]
os: [ ubuntu-20.04 ]
node-version: [ 18.x ]
browser: [ chromium ]
steps:
Expand All @@ -223,7 +223,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
cache: 'yarn'

- name: Download the build folders
uses: actions/download-artifact@v3
Expand All @@ -242,7 +242,7 @@ jobs:
key: ${{ matrix.os }}-yarn-v5${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ matrix.os }}-yarn
- name: 'Run e2e tests (chromium)'
if: matrix.browser == 'chromium'
id: cypress-tests-react
Expand Down Expand Up @@ -272,7 +272,7 @@ jobs:

react-tests-completed:
if: always()
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: react-tests
steps:
- uses: actions/download-artifact@v3
Expand All @@ -290,4 +290,3 @@ jobs:
- name: Failure file exists, exit with error
if: steps.check_files.outputs.files_exists == 'true'
run: exit 1

2 changes: 1 addition & 1 deletion .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
react:
strategy:
matrix:
os: [ ubuntu-latest ]
os: [ ubuntu-20.04 ]
node-version: [ 18.x ]
browser: [ chromium ]
runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit dab2a00

Please sign in to comment.