Skip to content

Commit

Permalink
add github action
Browse files Browse the repository at this point in the history
  • Loading branch information
bmesuere committed Jun 18, 2024
1 parent dc6c822 commit 5ba8ae2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 23 deletions.
36 changes: 13 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,22 @@ name: CI
on: [push]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ["2.7", "3.0", "3.1", "3.2"]
fail-fast: false
name: Test Ruby ${{ matrix.ruby }}
steps:
- uses: actions/checkout@v1
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Test
run: |
bundle exec rake test
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup Ruby
uses: ruby/setup-ruby@v1
- uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
bundler-cache: true
- name: Test
node-version: 22.x
cache: yarn
- name: Install dependencies
run: |
yarn install
- name: Lint
run: |
yarn lint
- name: Type check
run: |
bundle exec rake test_style
yarn typecheck
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"scripts": {
"build": "yarn run tsc",
"lint": "yarn run eslint",
"typecheck": "yarn tsc --skipLibCheck --noEmit",
"uniprot": "yarn run tsx bin/uniprot.ts"
},
"dependencies": {
Expand Down

0 comments on commit 5ba8ae2

Please sign in to comment.