1
1
mirror of https://github.com/primer/css.git synced 2024-09-20 13:17:29 +03:00
css/.github/workflows/ci.yml
2021-05-05 13:18:08 -07:00

43 lines
900 B
YAML

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
stylelint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
- run: yarn
- run: yarn dist
- name: Lint source files
run: yarn stylelint
- name: Look for unused stylelint:disable lines
run: yarn stylelint -- --report-needless-disables
eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
- run: yarn
- name: Lint workflow files
run: yarn eslint
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
- run: yarn
- name: Jest
run: yarn test