mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-08-04 00:00:08 +08:00
checkout v4.3.1 -> v7.0.1, setup-node v4.4.0 -> v7.0.0, stale v9.1.0 -> v10.4.0. The breaking changes across those majors do not apply here: - checkout v5/v6 harden `pull_request_target` checkouts; no workflow uses it - setup-node v5 auto-caches when package.json has a `packageManager` field; it has none, and `cache: npm` is set explicitly anyway - setup-node v7 drops the dummy NODE_AUTH_TOKEN export; the publish job sets NODE_AUTH_TOKEN itself - stale v10 only moves the runtime to node 24 All of them also raise the runtime to node 24, which clears the deprecation warnings on recent runs.
37 lines
578 B
YAML
37 lines
578 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
concurrency:
|
|
group: ci-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v7.0.1
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v7.0.0
|
|
with:
|
|
node-version: 24
|
|
cache: npm
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Lint
|
|
run: npm run lint -- --quiet
|
|
|
|
- name: Test
|
|
run: npm test
|
|
|
|
- name: Build
|
|
run: npm run build
|