Skip to content

Commit 14461f2

Browse files
committed
[CI] Migrate to GitHub Actions
1 parent 2b977e2 commit 14461f2

File tree

4 files changed

+35
-36
lines changed

4 files changed

+35
-36
lines changed

.github/workflows/nodejs.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Code Quality
2+
3+
on:
4+
push:
5+
paths:
6+
- ".github/**"
7+
- "yarn.lock"
8+
- "**.js"
9+
10+
11+
jobs:
12+
test_and_lint:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
node: [ 10, 12, 14, 16 ]
17+
steps:
18+
- uses: actions/setup-node@v2
19+
with:
20+
node-version: ${{ matrix.node }}
21+
22+
- uses: actions/checkout@v2
23+
24+
- uses: actions/cache@master
25+
id: node_modules_cache
26+
with:
27+
path: node_modules
28+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
29+
30+
- run: yarn install --frozen-lockfile
31+
if: steps.node_modules_cache.outputs.cache-hit != 'true'
32+
33+
- run: yarn test

.travis.yml

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

appveyor.yml

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

src/group-css-media-queries.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,5 @@ function GroupCssMediaQueriesPostCssPlugin() {
126126
};
127127
}
128128

129-
GroupCssMediaQueriesPostCssPlugin.postcss = true;
130-
131-
export { GroupCssMediaQueriesPostCssPlugin };
129+
module.exports = GroupCssMediaQueriesPostCssPlugin;
130+
module.exports.postcss = true;

0 commit comments

Comments
 (0)