Skip to content

Commit

Permalink
Merge pull request #110 from xt0rted/workflow-cleanup
Browse files Browse the repository at this point in the history
Workflow cleanup
  • Loading branch information
xt0rted authored Feb 14, 2021
2 parents 6f9ec3e + 8f6674f commit befbe03
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,22 @@ on:
- main

jobs:
eslint:
name: ESLint

build:
runs-on: ubuntu-latest

strategy:
matrix:
node: [12, 14]

steps:
- name: Checkout Repo
- name: Checkout repo
uses: actions/checkout@v2.3.4

- name: Install Node
- name: Install node
uses: actions/setup-node@v2.1.4
with:
node-version: "12.x"
node-version: ${{ matrix.node }}

- name: NPM Install
run: npm ci
- run: npm ci

- name: ESLint
uses: xt0rted/eslint-action@d9bd6dd0a116fc40c6d7a478c856eefd63bd4d07
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: npm test
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
"private": true,
"main": "main.js",
"scripts": {
"lint": "eslint ./",
"test": "echo \"Error: no test specified\" && exit 1"
"eslint": "eslint . --ext .js",
"eslint:fix": "eslint . --fix --ext .js",
"test": "npm run eslint"
},
"license": "MIT",
"dependencies": {
Expand Down

0 comments on commit befbe03

Please sign in to comment.