Skip to content

Commit

Permalink
ci(github): re-comment legacy unit workflow jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
ivangabriele committed Aug 25, 2024
1 parent 17f4503 commit 9b2d705
Showing 1 changed file with 70 additions and 75 deletions.
145 changes: 70 additions & 75 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9b2d705

Please sign in to comment.