Skip to content

Commit

Permalink
ci: renew workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ninoseki committed Jan 7, 2024
1 parent 6da4156 commit 2f69932
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
branches: [master]
paths:
- "frontend/**"
- ".github/workflows/**"
- ".github/workflows/node.yml"

jobs:
test:
Expand All @@ -31,8 +31,10 @@ jobs:
cache: npm
cache-dependency-path: frontend/package-lock.json
- name: Install npm dependencies
run: npm ci
run: npm install
- name: Run tests
run: npm run test:unit -- --run
- name: Run type-check
run: npm run type-check
- name: Run ESLint
run: npx eslint
17 changes: 16 additions & 1 deletion .github/workflows/test.yml → .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,24 @@ on:
paths:
- "lib/**"
- "mihari.gemspec"
- ".github/workflows/**"
- ".github/workflows/ruby.yml"

jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: [3.3]
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler: latest
bundler-cache: true
- name: Test
run: bundle exec standardrb
test:
runs-on: ubuntu-latest
strategy:
Expand Down

0 comments on commit 2f69932

Please sign in to comment.