Skip to content

Commit

Permalink
chore: migrate to github-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroppy committed Apr 5, 2020
1 parent 5a16ee9 commit 65bac2e
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 189 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: linter

on: [push]

env:
NODE_VERSION: 10.x

jobs:
linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v1
with:
node-version: ${{ env.NODE_VERSION }}
- name: Use Npm@latest
run: npm i -g npm
- name: Print versions
run: |
node -v
npm -v
- name: Install dependencies
run: npm ci
- name: 'Run lint'
run: npm run lint
- name: 'Run NPM audit'
run: npm run security
# - name: Run lint commit message
# run: npm run commitlint
41 changes: 41 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: test

on: [push]

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
node-version: [13.x, 12.x, 10.x]
webpack-version: [next, 4]
exclude:
- node-version: 13.x
webpack-version: 4
- node-version: 12.x
webpack-version: 4

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Use Npm@latest
run: npm i -g npm
- name: Print versions
run: |
node -v
npm -v
- name: Install dependencies
run: npm ci
- name: Install webpack@${{ matrix.webpack-version }}
run: npm i webpack@${{ matrix.webpack-version }}
- name: Run tests with coverage
run: npm run test:coverage -- --ci --reporters="default" --reporters="jest-junit"
- name: Submit coverage data to codecov
uses: codecov/codecov-action@v1.0.6
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: '**/junit.xml'
189 changes: 0 additions & 189 deletions azure-pipelines.yml

This file was deleted.

0 comments on commit 65bac2e

Please sign in to comment.