mirror of
https://github.com/developit/microbundle.git
synced 2026-01-18 13:56:35 +00:00
ci: Bump CI actions (#1082)
* ci: Bump CI versions * ci: Limit compressed-size to microbundle itself * ci: Limit push CI to master * test: Drop output messages from tests, not reliable enough nor completely necessary * ci: Revert removal of test reporter * ci: Downgrade Node versions * revert: Try reverting this whilst we're at it * ci: Bump release workflow
This commit is contained in:
parent
aae1611ef4
commit
00016d892b
22
.github/workflows/nodejs.yml
vendored
22
.github/workflows/nodejs.yml
vendored
@ -3,9 +3,8 @@ name: Node CI
|
||||
on:
|
||||
pull_request: {}
|
||||
push:
|
||||
branches-ignore:
|
||||
- trying.tmp
|
||||
- staging.tmp
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@ -16,23 +15,12 @@ jobs:
|
||||
node-version: [12.x, 14.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
.github/workflows/release.yml
vendored
8
.github/workflows/release.yml
vendored
@ -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 22.x
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 12.x
|
||||
node-version: 22.x
|
||||
|
||||
- name: Install Dependencies
|
||||
run: npm install
|
||||
|
||||
2
.github/workflows/size.yml
vendored
2
.github/workflows/size.yml
vendored
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user