Add museum lint action
This commit is contained in:
parent
748e715ae8
commit
0b37f74636
5 changed files with 48 additions and 35 deletions
10
.github/workflows/auth-lint.yml
vendored
10
.github/workflows/auth-lint.yml
vendored
|
@ -17,20 +17,18 @@ jobs:
|
|||
run:
|
||||
working-directory: auth
|
||||
steps:
|
||||
# Checkout our code, including submodules
|
||||
- uses: actions/checkout@v4
|
||||
- name: Checkout code and submodules
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
# Install Flutter
|
||||
- uses: subosito/flutter-action@v2
|
||||
- name: Install Flutter
|
||||
uses: subosito/flutter-action@v2
|
||||
with:
|
||||
channel: "stable"
|
||||
flutter-version: "3.13.4"
|
||||
cache: true
|
||||
|
||||
# Install dependencies
|
||||
- run: flutter pub get
|
||||
|
||||
# Lint
|
||||
- run: flutter analyze --no-fatal-infos
|
||||
|
|
10
.github/workflows/mobile-lint.yml
vendored
10
.github/workflows/mobile-lint.yml
vendored
|
@ -17,20 +17,18 @@ jobs:
|
|||
run:
|
||||
working-directory: mobile
|
||||
steps:
|
||||
# Checkout our code, including submodules
|
||||
- uses: actions/checkout@v4
|
||||
- name: Checkout code and submodules
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
# Install Flutter
|
||||
- uses: subosito/flutter-action@v2
|
||||
- name: Install Flutter
|
||||
uses: subosito/flutter-action@v2
|
||||
with:
|
||||
channel: "stable"
|
||||
flutter-version: "3.13.4"
|
||||
cache: true
|
||||
|
||||
# Install dependencies
|
||||
- run: flutter pub get
|
||||
|
||||
# Lint
|
||||
- run: flutter analyze --no-fatal-infos
|
||||
|
|
33
.github/workflows/server-lint.yml
vendored
Normal file
33
.github/workflows/server-lint.yml
vendored
Normal file
|
@ -0,0 +1,33 @@
|
|||
name: "Lint (server)"
|
||||
|
||||
on:
|
||||
# Run on every push (this also covers pull requests)
|
||||
push:
|
||||
# See: [Note: Specify branch when specifying a path filter]
|
||||
branches: ["**"]
|
||||
# Only run if something changes in these paths
|
||||
paths:
|
||||
- "server/**"
|
||||
- ".github/workflows/server-lint.yml"
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: server
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: "go.mod"
|
||||
cache: true
|
||||
|
||||
- name: Install dependencies
|
||||
run: sudo apt-get update && sudo apt-get install libsodium-dev
|
||||
|
||||
- name: Lint
|
||||
run: "./scripts/lint.sh"
|
9
.github/workflows/web-lint.yml
vendored
9
.github/workflows/web-lint.yml
vendored
|
@ -26,11 +26,16 @@ jobs:
|
|||
run:
|
||||
working-directory: web
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup node and enable yarn caching
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: "yarn"
|
||||
cache-dependency-path: "web/yarn.lock"
|
||||
|
||||
- run: yarn install
|
||||
|
||||
- run: yarn lint
|
||||
|
|
21
server/.github/workflows/pr.yml
vendored
21
server/.github/workflows/pr.yml
vendored
|
@ -1,21 +0,0 @@
|
|||
name: Code quality
|
||||
|
||||
on:
|
||||
# Enable manual run
|
||||
workflow_dispatch:
|
||||
# Run on every push; this also covers pull requests
|
||||
push:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: "go.mod"
|
||||
cache: true
|
||||
- run: sudo apt-get update && sudo apt-get install libsodium-dev
|
||||
- run:
|
||||
"./scripts/lint.sh"
|
||||
# - run: "go test ./..."
|
Loading…
Add table
Reference in a new issue