Skip to content

Commit

Permalink
ci: migrate to GitHub Actions (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker authored Sep 28, 2022
1 parent 92ea254 commit dc1ce95
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 23 deletions.
67 changes: 67 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: CI

on:
push:
branches:
- main
pull_request:
# schedule:
# - cron: "0 23 * * 6"

jobs:
test:
strategy:
fail-fast: false
matrix:
os:
- "ubuntu-latest"
- "macos-latest"
- "windows-latest"
node_version:
- "18"
- "16"
- "14"
- "12"
- "10"
- "8"
- "6"
name: Node.js ${{ matrix.node_version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false
steps:
- name: Checkout
uses: actions/checkout@v3

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

- name: Install Dependencies
run: yarn

- name: Run Test
run: yarn test

- uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true

lint:
name: Lint
runs-on: ubuntu-latest
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3

- name: Install Dependencies
run: yarn

- name: Run Lint
run: yarn lint
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

0 comments on commit dc1ce95

Please sign in to comment.