Skip to content

Commit

Permalink
Merge pull request #79 from smorimoto/update-gha
Browse files Browse the repository at this point in the history
Update GitHub Actions
  • Loading branch information
jihchi authored Apr 7, 2024
2 parents bd2b505 + 4fdbf37 commit 7430994
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
15 changes: 7 additions & 8 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: 'npm' # See documentation for possible values
directory: '/' # Location of package manifests
- package-ecosystem: github-actions
directory: /
schedule:
interval: 'weekly'
interval: weekly
- package-ecosystem: npm
directory: /
schedule:
interval: weekly
16 changes: 8 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: CI
on: [push]
on: [push, pull_request]
jobs:
build:
name: Build, lint, and test on Node ${{ matrix.node }} and ${{ matrix.os }}
Expand All @@ -8,23 +8,23 @@ jobs:

strategy:
matrix:
node: ['16.x', '18.x', '20.x', '21.x']
os: [ubuntu-latest, windows-latest, macOS-latest]
node: [16, 18, 20, 21]
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v3

- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
cache: pnpm

- name: Install dependencies
run: pnpm install
run: pnpm install --frozen-lockfile

- name: Test
run: pnpm test -- --coverage
Expand Down

0 comments on commit 7430994

Please sign in to comment.