Migrate to using taskfiles
This commit is contained in:
parent
0e1849061b
commit
6ea7d53a49
21 changed files with 564 additions and 391 deletions
7
.github/workflows/check.yml
vendored
7
.github/workflows/check.yml
vendored
|
|
@ -32,5 +32,10 @@ jobs:
|
|||
toolchain: "1.92.0"
|
||||
components: clippy, rustfmt
|
||||
|
||||
- name: Install Task
|
||||
uses: arduino/setup-task@v2
|
||||
with:
|
||||
version: 3.x
|
||||
|
||||
- name: Lint & test
|
||||
run: scripts/check.sh
|
||||
run: task check
|
||||
|
|
|
|||
7
.github/workflows/deploy-docs.yml
vendored
7
.github/workflows/deploy-docs.yml
vendored
|
|
@ -34,11 +34,16 @@ jobs:
|
|||
node-version: "25.x"
|
||||
check-latest: true
|
||||
|
||||
- name: Install Task
|
||||
uses: arduino/setup-task@v2
|
||||
with:
|
||||
version: 3.x
|
||||
|
||||
- name: Setup Pages
|
||||
uses: actions/configure-pages@v4
|
||||
|
||||
- name: Build docs
|
||||
run: scripts/build-docs.sh
|
||||
run: task docs:check
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
|
|
|
|||
17
.github/workflows/e2e.yml
vendored
17
.github/workflows/e2e.yml
vendored
|
|
@ -37,12 +37,13 @@ jobs:
|
|||
toolchain: "1.92.0"
|
||||
components: clippy, rustfmt
|
||||
|
||||
- name: Setup rust
|
||||
run: |
|
||||
which sqlx || cargo install sqlx-cli
|
||||
cd sync-server
|
||||
sqlx database create --database-url sqlite://db.sqlite3
|
||||
sqlx migrate run --source src/app_state/database/migrations --database-url sqlite://db.sqlite3
|
||||
- name: Install Task
|
||||
uses: arduino/setup-task@v2
|
||||
with:
|
||||
version: 3.x
|
||||
|
||||
- name: Setup database
|
||||
run: task db:setup
|
||||
|
||||
- name: E2E tests
|
||||
run: |
|
||||
|
|
@ -51,7 +52,7 @@ jobs:
|
|||
SERVER_PID=$!
|
||||
cd ..
|
||||
|
||||
scripts/e2e.sh 8
|
||||
task e2e -- 8
|
||||
EXIT_CODE=$?
|
||||
|
||||
kill $SERVER_PID 2>/dev/null || true
|
||||
|
|
@ -69,4 +70,4 @@ jobs:
|
|||
|
||||
- name: Cleanup
|
||||
if: always()
|
||||
run: scripts/clean-up.sh
|
||||
run: task clean
|
||||
|
|
|
|||
18
.github/workflows/publish-plugin.yml
vendored
18
.github/workflows/publish-plugin.yml
vendored
|
|
@ -22,25 +22,27 @@ jobs:
|
|||
node-version: "25.x"
|
||||
check-latest: true
|
||||
|
||||
- name: Build plugin
|
||||
run: |
|
||||
cd frontend
|
||||
npm ci
|
||||
npm run build
|
||||
|
||||
- name: Setup Rust toolchain
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
toolchain: "1.92.0"
|
||||
components: clippy, rustfmt
|
||||
|
||||
- name: Install Task
|
||||
uses: arduino/setup-task@v2
|
||||
with:
|
||||
version: 3.x
|
||||
|
||||
- name: Install cross-compilation tools
|
||||
run: |
|
||||
apt update
|
||||
apt install -y gcc-aarch64-linux-gnu musl-tools gcc-mingw-w64-x86-64
|
||||
|
||||
- name: Build Linux and Windows binaries
|
||||
run: ./scripts/build-sync-server-binaries.sh
|
||||
- name: Build frontend
|
||||
run: task frontend:build
|
||||
|
||||
- name: Build binaries
|
||||
run: task release:build-binaries
|
||||
|
||||
- name: Create release
|
||||
env:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue