Skip to content

Commit

Permalink
ci: bump actions/cache (#295)
Browse files Browse the repository at this point in the history
* ci: bump `actions/cache`

* ci: exclude macos-latest + node 14

* ci: fix cache
  • Loading branch information
SukkaW authored Sep 17, 2024
1 parent 62b9733 commit b457f47
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: '14.x'
node-version: "14.x"
- name: Cache NPM dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.OS }}-npm-cache
Expand Down
26 changes: 16 additions & 10 deletions .github/workflows/tester.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,25 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: ['14.x', '16.x', '18.x']
node-version: ["14.x", "16.x", "18.x"]
exclude:
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/running-variations-of-jobs-in-a-workflow#excluding-matrix-configurations
- os: macos-latest
node-version: 14.x
fail-fast: false
steps:
- uses: actions/checkout@v2
- 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 NPM dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-npm-cache
restore-keys: ${{ runner.os }}-npm-cache
key: ${{ runner.OS }}-npm-cache
restore-keys: |
${{ runner.OS }}-npm-cache
- name: Install Dependencies
run: npm i
- name: Test
Expand All @@ -33,19 +38,20 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: ['14.x']
node-version: ["14.x"]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Cache NPM dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-npm-cache
restore-keys: ${{ runner.os }}-npm-cache
key: ${{ runner.OS }}-npm-cache
restore-keys: |
${{ runner.OS }}-npm-cache
- name: Install Dependencies
run: npm install
- name: Coverage
Expand Down

0 comments on commit b457f47

Please sign in to comment.