Skip to content

Commit

Permalink
ci: add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Jul 10, 2023
1 parent aff732b commit 9173c4d
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 18 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: CI

on: [push, pull_request]

jobs:
test:
name: Run tests
strategy:
fail-fast: false
matrix:
node-version:
- '0.10'
- '0.12'
- '4.x'
- '6.x'
- '8.x'
- '10.x'
- '12.x'
- '14.x'
- '16.x'
- '18.x'
- '20.x'
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install Node.js ${{matrix.node-version}}
uses: actions/setup-node@v3
with:
node-version: ${{matrix.node-version}}
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test

lint:
name: Standard Style
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: lts/*
- name: Install dependencies
run: npm install
- name: Check style
run: npm run lint
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

0 comments on commit 9173c4d

Please sign in to comment.