Bump marked from 14.1.4 to 15.0.1 in /notegraf-web #2701
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push, pull_request] | |
name: Continuous Integration | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
check: | |
name: Check | |
runs-on: ubuntu-latest | |
env: | |
SQLX_OFFLINE: true | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: caizixian/[email protected] | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- run: sudo apt-get install -y protobuf-compiler | |
- uses: caizixian/[email protected] | |
with: | |
command: check | |
test: | |
name: Test Suite | |
strategy: | |
matrix: | |
notestore: [ "InMemory", "PostgreSQL" ] | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:14 | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: password | |
POSTGRES_DB: notegraf | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 5432:5432 | |
env: | |
NOTEGRAF_PORT: "8000" # not used for test | |
NOTEGRAF_DEBUG: "true" | |
NOTEGRAF_NOTESTORETYPE: ${{ matrix.notestore }} | |
NOTEGRAF_DATABASE_HOST: "localhost" | |
NOTEGRAF_DATABASE_PORT: "5432" | |
NOTEGRAF_DATABASE_USERNAME: "postgres" | |
NOTEGRAF_DATABASE_PASSWORD: "password" | |
NOTEGRAF_DATABASE_NAME: "notegraf" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: caizixian/[email protected] | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- run: sudo apt-get install -y protobuf-compiler | |
- uses: caizixian/[email protected] | |
with: | |
command: test | |
fmt: | |
name: Rustfmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: caizixian/[email protected] | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
components: rustfmt | |
- run: sudo apt-get install -y protobuf-compiler | |
- uses: caizixian/[email protected] | |
with: | |
command: fmt | |
args: --all -- --check | |
clippy: | |
name: Clippy | |
runs-on: ubuntu-latest | |
env: | |
SQLX_OFFLINE: true | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: caizixian/[email protected] | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
components: clippy | |
- run: sudo apt-get install -y protobuf-compiler | |
- uses: caizixian/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
args: -- -D warnings | |
coverage: | |
name: Code coverage | |
strategy: | |
matrix: | |
notestore: ["InMemory", "PostgreSQL"] | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:14 | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: password | |
POSTGRES_DB: notegraf | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 5432:5432 | |
env: | |
NOTEGRAF_PORT: "8000" # not used for test | |
NOTEGRAF_DEBUG: "true" | |
NOTEGRAF_NOTESTORETYPE: ${{ matrix.notestore }} | |
NOTEGRAF_DATABASE_HOST: "localhost" | |
NOTEGRAF_DATABASE_PORT: "5432" | |
NOTEGRAF_DATABASE_USERNAME: "postgres" | |
NOTEGRAF_DATABASE_PASSWORD: "password" | |
NOTEGRAF_DATABASE_NAME: "notegraf" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: caizixian/[email protected] | |
with: | |
toolchain: stable | |
override: true | |
- run: sudo apt-get install -y protobuf-compiler | |
- uses: caizixian/[email protected] | |
with: | |
args: '--ignore-tests' | |
out-type: 'html' | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: coverage-report-html-${{ matrix.notestore }} | |
path: tarpaulin-report.html | |
frontend_test: | |
name: Frontend tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Node | |
uses: actions/[email protected] | |
with: | |
node-version: 'lts/*' | |
cache: 'npm' | |
cache-dependency-path: './notegraf-web/package-lock.json' | |
- run: npm install | |
working-directory: ./notegraf-web | |
- run: npx tsc --noEmit | |
working-directory: ./notegraf-web |