Skip to content

Commit 9396e0e

Browse files
ci: update
1 parent 47d0be7 commit 9396e0e

File tree

3 files changed

+82
-67
lines changed

3 files changed

+82
-67
lines changed

.github/workflows/nodejs.yml

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
name: css-loader
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- next
8+
pull_request:
9+
branches:
10+
- master
11+
- next
12+
13+
jobs:
14+
lint:
15+
name: Lint - ${{ matrix.os }} - Node v${{ matrix.node-version }}
16+
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
20+
strategy:
21+
matrix:
22+
os: [ubuntu-latest]
23+
node-version: [12.x]
24+
25+
runs-on: ${{ matrix.os }}
26+
27+
steps:
28+
- uses: actions/checkout@v2
29+
with:
30+
fetch-depth: 0
31+
32+
- name: Use Node.js ${{ matrix.node-version }}
33+
uses: actions/setup-node@v2
34+
with:
35+
node-version: ${{ matrix.node-version }}
36+
cache: "yarn"
37+
38+
- name: Install dependencies
39+
run: yarn
40+
41+
- name: Lint
42+
run: yarn lint
43+
44+
- name: Security audit
45+
run: yarn audit
46+
47+
- name: Check commit message
48+
uses: wagoid/commitlint-github-action@v4
49+
50+
test:
51+
name: Test - ${{ matrix.os }} - Node v${{ matrix.node-version }}
52+
53+
strategy:
54+
matrix:
55+
os: [ubuntu-latest, windows-latest, macos-latest]
56+
node-version: [12.x, 14.x, 16.x, 17.x]
57+
58+
runs-on: ${{ matrix.os }}
59+
60+
steps:
61+
- name: Setup Git
62+
if: matrix.os == 'windows-latest'
63+
run: git config --global core.autocrlf input
64+
65+
- uses: actions/checkout@v2
66+
67+
- name: Use Node.js ${{ matrix.node-version }}
68+
uses: actions/setup-node@v2
69+
with:
70+
node-version: ${{ matrix.node-version }}
71+
cache: "yarn"
72+
73+
- name: Install dependencies
74+
run: yarn
75+
76+
- name: Run tests
77+
run: yarn test
78+
79+
- name: Submit coverage data to codecov
80+
uses: codecov/codecov-action@v2
81+
with:
82+
token: ${{ secrets.CODECOV_TOKEN }}

.travis.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

appveyor.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)