Skip to content

Commit

Permalink
ci: Bump CI versions
Browse files Browse the repository at this point in the history
  • Loading branch information
rschristian committed Jun 4, 2024
1 parent 4b11285 commit 1677e7b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 21 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,15 @@ jobs:

strategy:
matrix:
node-version: [12.x, 14.x]
node-version: [18.x, 20.x]

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Cache node modules
uses: actions/cache@v1
env:
cache-name: cache-node-modules
with:
path: ~/.npm
# This uses the same name as the build-action so we can share the caches.
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
cache: npm
- run: npm ci --ignore-scripts
- name: npm build and test
run: npm test
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
uses: actions/checkout@v4
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0

- name: Setup Node.js 12.x
uses: actions/setup-node@master
- name: Setup Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: 12.x
node-version: 18.x

- name: Install Dependencies
run: npm install
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: compressed-size-action
uses: preactjs/compressed-size-action@v2
Expand All @@ -21,5 +21,6 @@ jobs:
uses: preactjs/compressed-size-action@v2
with:
pattern: 'test/fixtures/**/dist/!(*.map)'
build-script: 'test'
# We don't care about test suite failures, that's for the CI action
build-script: 'test -- -u'
repo-token: '${{ secrets.GITHUB_TOKEN }}'

0 comments on commit 1677e7b

Please sign in to comment.