Skip to content

Commit

Permalink
ci: setup github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
wnqueiroz committed May 20, 2021
1 parent 78f8481 commit 4293f63
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build checking

on: pull_request

jobs:
code:
name: Build checking
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0

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

- name: Install dependencies
uses: bahmutov/npm-install@v1

- name: Run TypeScript
run: npm run build --if-present
24 changes: 24 additions & 0 deletions .github/workflows/lint-code.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Lint

on: pull_request

jobs:
code:
name: Lint code
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0

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

- name: Install dependencies
uses: bahmutov/npm-install@v1

- name: Run ESLint
run: npm run lint

0 comments on commit 4293f63

Please sign in to comment.