Bump eslint from 9.16.0 to 9.17.0 #1109
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
test-package: | |
name: Test Package | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.2.2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4.1.0 | |
with: | |
node-version-file: .nvmrc | |
- name: Setup Yarn | |
uses: threeal/setup-yarn-action@v2.0.0 | |
- name: Test Package | |
run: yarn test | |
test-action: | |
name: Test Action | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-24.04, macos-14, windows-2022] | |
steps: | |
- name: Checkout Package | |
uses: actions/checkout@v4.2.2 | |
with: | |
repository: threeal/nodejs-starter | |
- name: Checkout Action | |
uses: actions/checkout@v4.2.2 | |
with: | |
path: setup-yarn-action | |
sparse-checkout: | | |
action.yml | |
dist | |
sparse-checkout-cone-mode: false | |
- name: Setup Yarn | |
uses: ./setup-yarn-action | |
- name: Build Package | |
run: yarn pack | |
test-action-with-specific-version: | |
name: Test Action With Specific Version | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-24.04, macos-14, windows-2022] | |
steps: | |
- name: Checkout Package | |
uses: actions/checkout@v4.2.2 | |
with: | |
repository: threeal/nodejs-starter | |
ref: v1.0.0 | |
- name: Alter Package | |
shell: bash | |
run: jq 'del(.packageManager)' package.json > package.json.tmp && mv package.json.tmp package.json | |
- name: Checkout Action | |
uses: actions/checkout@v4.2.2 | |
with: | |
path: setup-yarn-action | |
sparse-checkout: | | |
action.yml | |
dist | |
sparse-checkout-cone-mode: false | |
- name: Setup Yarn | |
uses: ./setup-yarn-action | |
with: | |
version: 4.0.2 | |
- name: Check Version | |
shell: bash | |
run: test $(yarn --version) == 4.0.2 | |
- name: Build Package | |
run: yarn pack | |
test-action-without-cache: | |
name: Test Action Without Cache | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-24.04, macos-14, windows-2022] | |
steps: | |
- name: Checkout Package | |
uses: actions/checkout@v4.2.2 | |
with: | |
repository: threeal/nodejs-starter | |
- name: Checkout Action | |
uses: actions/checkout@v4.2.2 | |
with: | |
path: setup-yarn-action | |
sparse-checkout: | | |
action.yml | |
dist | |
sparse-checkout-cone-mode: false | |
- name: Setup Yarn | |
uses: ./setup-yarn-action | |
with: | |
cache: false | |
- name: Build Package | |
run: yarn pack | |
test-action-with-yarn-local-cache: | |
name: Test Action With Yarn Local Cache | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout Package | |
uses: actions/checkout@v4.2.2 | |
with: | |
repository: threeal/nodejs-starter | |
- name: Checkout Action | |
uses: actions/checkout@v4.2.2 | |
with: | |
path: setup-yarn-action | |
sparse-checkout: | | |
action.yml | |
dist | |
sparse-checkout-cone-mode: false | |
- name: Disable Yarn Global Cache | |
run: | | |
corepack enable yarn | |
yarn config set enableGlobalCache false | |
- name: Setup Yarn | |
uses: ./setup-yarn-action | |
- name: Build Package | |
run: yarn pack |