From 5ba8ae294a790c7dd93259588dfea8c825112e50 Mon Sep 17 00:00:00 2001 From: Bart Mesuere Date: Tue, 18 Jun 2024 14:08:38 +0200 Subject: [PATCH] add github action --- .github/workflows/ci.yml | 36 +++++++++++++----------------------- package.json | 1 + 2 files changed, 14 insertions(+), 23 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 273acce5..ef58d4e6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/package.json b/package.json index fc3569b4..dd419f31 100644 --- a/package.json +++ b/package.json @@ -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": {