chore: enable test on PR to release branch (#5028)
* chore: enable test on PR to release branch * chore: disable coverage check * chore: remove verbose build
This commit is contained in:
parent
ead591d3b8
commit
d70e20ae0a
@ -34,6 +34,8 @@ on:
|
|||||||
- 'Makefile'
|
- 'Makefile'
|
||||||
- 'extensions/**'
|
- 'extensions/**'
|
||||||
- 'core/**'
|
- 'core/**'
|
||||||
|
- 'src-tauri/**'
|
||||||
|
- 'web-app/**'
|
||||||
- '!README.md'
|
- '!README.md'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -305,53 +307,53 @@ jobs:
|
|||||||
path: electron/playwright-report/
|
path: electron/playwright-report/
|
||||||
retention-days: 2
|
retention-days: 2
|
||||||
|
|
||||||
coverage-check:
|
# coverage-check:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
needs: base_branch_cov
|
# needs: base_branch_cov
|
||||||
continue-on-error: true
|
# continue-on-error: true
|
||||||
if: (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) || github.event_name == 'push' || github.event_name == 'workflow_dispatch'
|
# if: (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) || github.event_name == 'push' || github.event_name == 'workflow_dispatch'
|
||||||
steps:
|
# steps:
|
||||||
- name: Getting the repo
|
# - name: Getting the repo
|
||||||
uses: actions/checkout@v3
|
# uses: actions/checkout@v3
|
||||||
with:
|
# with:
|
||||||
fetch-depth: 0
|
# fetch-depth: 0
|
||||||
|
|
||||||
- name: Installing node
|
# - name: Installing node
|
||||||
uses: actions/setup-node@v3
|
# uses: actions/setup-node@v3
|
||||||
with:
|
# with:
|
||||||
node-version: 20
|
# node-version: 20
|
||||||
|
|
||||||
- name: Install yarn
|
# - name: Install yarn
|
||||||
run: npm install -g yarn
|
# run: npm install -g yarn
|
||||||
|
|
||||||
- name: 'Cleanup cache'
|
# - name: 'Cleanup cache'
|
||||||
continue-on-error: true
|
# continue-on-error: true
|
||||||
run: |
|
# run: |
|
||||||
rm -rf ~/jan
|
# rm -rf ~/jan
|
||||||
make clean
|
# make clean
|
||||||
|
|
||||||
- name: Download code coverage report from base branch
|
# - name: Download code coverage report from base branch
|
||||||
uses: actions/download-artifact@v4
|
# uses: actions/download-artifact@v4
|
||||||
with:
|
# with:
|
||||||
name: ref-lcov.info
|
# name: ref-lcov.info
|
||||||
|
|
||||||
- name: Linter and test coverage
|
# - name: Linter and test coverage
|
||||||
run: |
|
# run: |
|
||||||
export DISPLAY=$(w -h | awk 'NR==1 {print $2}')
|
# export DISPLAY=$(w -h | awk 'NR==1 {print $2}')
|
||||||
echo -e "Display ID: $DISPLAY"
|
# echo -e "Display ID: $DISPLAY"
|
||||||
make lint
|
# make lint
|
||||||
yarn build:test
|
# yarn build:test
|
||||||
yarn test:coverage
|
# yarn test:coverage
|
||||||
|
|
||||||
- name: Generate Code Coverage report
|
# - name: Generate Code Coverage report
|
||||||
id: code-coverage
|
# id: code-coverage
|
||||||
uses: barecheck/code-coverage-action@v1
|
# uses: barecheck/code-coverage-action@v1
|
||||||
with:
|
# with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
# github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
lcov-file: './coverage/lcov.info'
|
# lcov-file: './coverage/lcov.info'
|
||||||
base-lcov-file: './lcov.info'
|
# base-lcov-file: './lcov.info'
|
||||||
send-summary-comment: true
|
# send-summary-comment: true
|
||||||
show-annotations: 'warning'
|
# show-annotations: 'warning'
|
||||||
|
|
||||||
test-on-ubuntu-pr-target:
|
test-on-ubuntu-pr-target:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
@ -29,8 +29,8 @@
|
|||||||
"install:cortex": "run-script-os",
|
"install:cortex": "run-script-os",
|
||||||
"download:bin": "node ./scripts/download-bin.mjs",
|
"download:bin": "node ./scripts/download-bin.mjs",
|
||||||
"dev:tauri": "yarn build:icon && yarn copy:assets:tauri && tauri dev",
|
"dev:tauri": "yarn build:icon && yarn copy:assets:tauri && tauri dev",
|
||||||
"build:tauri:linux:win32": "yarn download:bin && yarn install:cortex && yarn build:icon && yarn copy:assets:tauri && yarn tauri build --verbose",
|
"build:tauri:linux:win32": "yarn download:bin && yarn install:cortex && yarn build:icon && yarn copy:assets:tauri && yarn tauri build",
|
||||||
"build:tauri:darwin": "yarn install:cortex && yarn build:icon && yarn copy:assets:tauri && yarn tauri build --verbose --target universal-apple-darwin",
|
"build:tauri:darwin": "yarn install:cortex && yarn build:icon && yarn copy:assets:tauri && yarn tauri build --target universal-apple-darwin",
|
||||||
"build:tauri": "run-script-os",
|
"build:tauri": "run-script-os",
|
||||||
"build:icon": "tauri icon ./src-tauri/icons/icon.png",
|
"build:icon": "tauri icon ./src-tauri/icons/icon.png",
|
||||||
"build:server": "cd server && yarn build",
|
"build:server": "cd server && yarn build",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user