Skip to content

Commit

Permalink
ci: add ci setup that lints and runs tests (#72)
Browse files Browse the repository at this point in the history
* ci: add ci setup that lints and runs tests

* docs: fix markdown headers in readme
  • Loading branch information
ewanharris committed Aug 1, 2022
1 parent 0ee7684 commit 7d29171
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/test.yml
@@ -0,0 +1,20 @@
name: Tests

on: [push, pull_request]

jobs:
Tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v1
with:
node-version: '16.x'
- name: Install NPM dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Test
run: npm run test
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -2,7 +2,7 @@

Alloy specific linting rules for ESLint.

# Installation
## Installation

Install [ESLint](https://www.github.com/eslint/eslint) either locally or globally.

Expand Down Expand Up @@ -35,7 +35,7 @@ Enable the rules that you would like to use.
}
```

# List of supported rules
## List of supported rules

* [alloy/no-unused-vars](docs/rules/no-unused-vars.md): Extension of the built in [no-unused-vars](https://github.com/eslint/eslint/blob/master/docs/rules/no-unused-vars.md) that also looks up functions used in view files.

Expand Down

0 comments on commit 7d29171

Please sign in to comment.