Skip to content
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.

Commit

Permalink
Merge pull request #6 from jeromemacias/travis_to_ga
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromemacias authored Aug 3, 2022
2 parents f470dc3 + 93c6717 commit 7910e70
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 20 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CI

on:
push:
paths-ignore:
- 'docs/**'
- '*.md'
pull_request:
paths-ignore:
- 'docs/**'
- '*.md'

jobs:
test:
uses: fastify/workflows/.github/workflows/plugins-ci.yml@v3
with:
license-check: true
lint: true

typescript:
name: Test
runs-on: ${{ matrix.os }}
permissions:
contents: read
strategy:
matrix:
node-version: [14, 16, 18]
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- name: Check out repo
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm i --ignore-scripts

- name: Run Typescript
run: npm run typescript
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"main": "plugin.js",
"types": "plugin.d.ts",
"scripts": {
"test": "tap test/*.test.js && npm run typescript",
"test-ci": "tap --cov test/*.test.js && npm run typescript",
"lint": "standard | snazzy",
"lint-ci": "standard",
"test-local": "tap test/*.test.js && npm run typescript",
"test": "tap --cov test/*.test.js && npm run typescript",
"lint-local": "standard | snazzy",
"lint": "standard",
"typescript": "tsc --project ./tsconfig.json"
},
"precommit": [
Expand Down

0 comments on commit 7910e70

Please sign in to comment.