forked from LukeChannings/rollup-plugin-postcss
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 897 Bytes
/
ci.yml
File metadata and controls
36 lines (32 loc) · 897 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v2
- name: Use Node.js LTS
uses: actions/setup-node@v1
with:
# alias support: https://github.com/actions/setup-node/issues/26
node-version: '12'
- name: Cache NPM dependencies
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.OS }}-npm-cache-${{ matrix.os }}
restore-keys: |
${{ runner.OS }}-npm-cache-${{ matrix.os }}
- name: Install Dependencies
run: |
npm install -g yarn
yarn --frozen-lockfile --non-interactive
- name: Test
run: yarn test
- name: Lint
run: yarn lint
env:
CI: true