add github linter actions (Ruby / TypeScript)
This commit is contained in:
parent
1fc7e9833b
commit
93fc88e869
2 changed files with 39 additions and 0 deletions
23
.github/workflows/ruby-linter.yml
vendored
Normal file
23
.github/workflows/ruby-linter.yml
vendored
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
name: Ruby
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ main ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
linter:
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest]
|
||||||
|
ruby: [3.1]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: ruby/setup-ruby@v1
|
||||||
|
with:
|
||||||
|
ruby-version: ${{ matrix.ruby }}
|
||||||
|
- run: bundle install
|
||||||
|
- run: ruby -S rake linter:ruby
|
16
.github/workflows/typescript-linter.yml
vendored
Normal file
16
.github/workflows/typescript-linter.yml
vendored
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
name: TypeScript
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ main ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
linter:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
- run: npm i
|
||||||
|
- run: npm run eslint
|
Loading…
Reference in a new issue