Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzlopak committed Oct 8, 2023
1 parent 9a6c928 commit fa8a0ce
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 6 deletions.
75 changes: 69 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,35 @@ on:
- '*.md'

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: lts/*
- name: Install
run: |
npm install
- name: Install PeerDeps
run: |
npm i fastify json-schema-to-ts
- name: Run lint
run: |
npm run lint
test:
name: Test on Node.js ${{ matrix.node-version }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [12, 14, 16, 17]
node-version: [14, 16, 18, 20]
os: [macos-latest, ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v3
Expand All @@ -39,10 +59,53 @@ jobs:
run: |
npm i fastify json-schema-to-ts
- name: Run lint
- name: Run Transpile
run: |
npm run lint
npm run build
- name: Run tests
types:
name: Types
runs-on: 'ubuntu-latest'

steps:
- uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: lts/*

- name: Install
run: |
npm install
- name: Install PeerDeps
run: |
npm run test
npm i fastify json-schema-to-ts
- name: Transpile
run: |
npm run build
- name: Test types
run: |
npm run typescript
automerge:
name: Automerge Dependabot PRs
if: >
github.event_name == 'pull_request' &&
github.event.pull_request.user.login == 'dependabot[bot]'
needs:
- lint
- test
- types
permissions:
pull-requests: write
contents: write
runs-on: ubuntu-latest
steps:
- uses: fastify/github-action-merge-dependabot@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
target: major
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false

0 comments on commit fa8a0ce

Please sign in to comment.