update workflow
This commit is contained in:
11
.github/workflows/general.yml
vendored
11
.github/workflows/general.yml
vendored
@@ -16,6 +16,7 @@ env:
|
|||||||
DATABASE_URL: postgres://postgres:password@postgres:5432/newsletter
|
DATABASE_URL: postgres://postgres:password@postgres:5432/newsletter
|
||||||
APP_DATABASE__HOST: postgres
|
APP_DATABASE__HOST: postgres
|
||||||
APP_KV_STORE__HOST: redis
|
APP_KV_STORE__HOST: redis
|
||||||
|
RUNNER_TOOL_CACHE: /toolcache
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
@@ -43,8 +44,6 @@ jobs:
|
|||||||
sudo apt-get install -y mold clang
|
sudo apt-get install -y mold clang
|
||||||
- name: Install the Rust toolchain
|
- name: Install the Rust toolchain
|
||||||
uses: actions-rust-lang/setup-rust-toolchain@v1
|
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
with:
|
|
||||||
cache: false
|
|
||||||
- name: Install sqlx-cli
|
- name: Install sqlx-cli
|
||||||
run: cargo install sqlx-cli
|
run: cargo install sqlx-cli
|
||||||
--version=${{ env.SQLX_VERSION }}
|
--version=${{ env.SQLX_VERSION }}
|
||||||
@@ -77,12 +76,16 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
SQLX_OFFLINE: true
|
SQLX_OFFLINE: true
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Install mold linker
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y mold clang
|
||||||
- name: Install the Rust toolchain
|
- name: Install the Rust toolchain
|
||||||
uses: actions-rust-lang/setup-rust-toolchain@v1
|
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
with:
|
with:
|
||||||
components: clippy
|
components: clippy
|
||||||
cache: false
|
|
||||||
- name: Linting
|
- name: Linting
|
||||||
run: cargo clippy -- -D warnings
|
run: cargo clippy -- -D warnings
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user