Skip to content

Commit

Permalink
github actions のテスト
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki-uchida committed Sep 6, 2024
1 parent 0760464 commit d58debe
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Lint

on:
pull_request:
branches:
- master

jobs:
lint-and-test:
runs-on: ubuntu-latest
container:
image: rust:1.79
steps:
- uses: actions/checkout@v4
- name: Install Clippy and Rustfmt
run: |
rustup component add clippy
rustup component add rustfmt
- name: Run Clippy
run: cargo clippy -- -D warnings
- name: Check code formatting
run: cargo fmt -- --check
- name: Run Unit Tests
run: cargo test
pretiier:
runs-on: ubuntu-latest
container:
image: cimg/node:21.6.2
steps:
- uses: actions/checkout@v4
- name: Install Prettier
run: npm install ./js
- name: Check code formatting
run: npx prettier --check "js/**/*.{js,jsx,ts,tsx,json,css,md}"

0 comments on commit d58debe

Please sign in to comment.