-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(github): re-comment legacy unit workflow jobs
- Loading branch information
1 parent
17f4503
commit 9b2d705
Showing
1 changed file
with
70 additions
and
75 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -121,79 +121,74 @@ jobs: | |
run: cargo test --no-fail-fast --workspace -- --nocapture | ||
working-directory: ./src-tauri | ||
|
||
webview_build: | ||
name: Build Webview | ||
needs: | ||
- webview_lint | ||
- webview_type | ||
- webview_test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: false | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
cache: yarn | ||
node-version: 20 | ||
- name: Install Node.js dependencies | ||
run: yarn | ||
- name: Run | ||
run: yarn build:webview | ||
- name: Upload Webview Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: webview | ||
path: ./build | ||
# webview_build: | ||
# name: Build Webview | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v3 | ||
# with: | ||
# submodules: false | ||
# - name: Setup Node.js | ||
# uses: actions/setup-node@v3 | ||
# with: | ||
# cache: yarn | ||
# node-version: 20 | ||
# - name: Install Node.js dependencies | ||
# run: yarn | ||
# - name: Run | ||
# run: yarn build:webview | ||
# - name: Upload Webview Artifact | ||
# uses: actions/upload-artifact@v3 | ||
# with: | ||
# name: webview | ||
# path: ./build | ||
|
||
core_test: | ||
name: Test Core | ||
needs: | ||
- webview_build | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ivangabriele/tauri:bullseye-18 | ||
options: --security-opt seccomp=unconfined | ||
env: | ||
CARGO_TERM_COLOR: always | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: false | ||
- name: Download Webview Artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: webview | ||
path: ./build | ||
- name: Get Clamav Desktop version | ||
id: get_version | ||
uses: battila7/[email protected] | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
key: unit | ||
shared-key: ${{ steps.get_version.outputs.version }} | ||
workspaces: './src-tauri -> target' | ||
- name: Install ClamAV | ||
run: | | ||
apt-get update | ||
apt-get install -y clamav | ||
- name: Print ClamAV version | ||
run: clamscan -V | ||
- name: Build | ||
run: cargo build | ||
working-directory: ./src-tauri | ||
- name: Run | ||
run: cargo test --no-fail-fast | ||
working-directory: ./src-tauri | ||
# TODO Investigate why this is so slow. | ||
# https://github.com/xd009642/tarpaulin#github-actions | ||
# - name: Generate Coverage | ||
# run: cargo tarpaulin --timeout 120 --out Xml | ||
# working-directory: ./src-tauri | ||
# - name: Upload Coverage | ||
# uses: codecov/codecov-action@v3 | ||
# with: | ||
# directory: ./src-tauri | ||
# core_test: | ||
# name: Test Core | ||
# needs: [webview_build] | ||
# runs-on: ubuntu-latest | ||
# container: | ||
# image: ivangabriele/tauri:bullseye-18 | ||
# options: --security-opt seccomp=unconfined | ||
# env: | ||
# CARGO_TERM_COLOR: always | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v3 | ||
# with: | ||
# submodules: false | ||
# - name: Download Webview Artifact | ||
# uses: actions/download-artifact@v3 | ||
# with: | ||
# name: webview | ||
# path: ./build | ||
# - name: Get Clamav Desktop version | ||
# id: get_version | ||
# uses: battila7/[email protected] | ||
# - uses: Swatinem/rust-cache@v2 | ||
# with: | ||
# key: unit | ||
# shared-key: ${{ steps.get_version.outputs.version }} | ||
# workspaces: './src-tauri -> target' | ||
# - name: Install ClamAV | ||
# run: | | ||
# apt-get update | ||
# apt-get install -y clamav | ||
# - name: Print ClamAV version | ||
# run: clamscan -V | ||
# - name: Build | ||
# run: cargo build | ||
# working-directory: ./src-tauri | ||
# - name: Run | ||
# run: cargo test --no-fail-fast | ||
# working-directory: ./src-tauri | ||
# # TODO Investigate why this is so slow. | ||
# # https://github.com/xd009642/tarpaulin#github-actions | ||
# - name: Generate Coverage | ||
# run: cargo tarpaulin --timeout 120 --out Xml | ||
# working-directory: ./src-tauri | ||
# - name: Upload Coverage | ||
# uses: codecov/codecov-action@v3 | ||
# with: | ||
# directory: ./src-tauri |