Skip to content
Open

wip #88

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 17 additions & 10 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,33 @@
name: Lint
name: Tests & Linting

on: push

jobs:
run-linters:
name: Run linters
setup:
runs-on: ubuntu-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 12.18.2
node-version: 10.16.0

- name: Install Node.js dependencies
run: yarn

- name: Run linters
uses: wearerequired/lint-action@v1
with:
github_token: ${{ secrets.github_token }}
eslint: true
- name: some bullshit
run: npm run step1

build:
needs: setup
runs-on: ubuntu-latest
steps:
- run: npm run step2

test:
needs: build
runs-on: ubuntu-latest
steps:
- run: npm run step3
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
"lib"
],
"scripts": {
"step1": "echo 'step one'",
"step2": "echo 'step two A'",
"step3": "echo 'step two B'",
"docs": "node ./generate-readme.js",
"example": "npm-run-all example:*",
"example:cli": "rm -rf ./example/iconr_output && node ./bin/iconr ./example/svg ./example/iconr_output --analytics --debug --pretty --verbose --filename=\"icons.css\" --classname=\"icon-\"",
Expand Down