feat: add release workflow for pull requests
Some checks failed
Release / build_test (pull_request) Failing after 39s
Some checks failed
Release / build_test (pull_request) Failing after 39s
This commit is contained in:
37
.gitea/workflows/test-pr.yml
Normal file
37
.gitea/workflows/test-pr.yml
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
name: Release
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: true
|
||||||
|
group: test-pr-${{ github.event.pull_request.number }}
|
||||||
|
|
||||||
|
env:
|
||||||
|
ACT_OWNER: ${{ github.repository_owner }}
|
||||||
|
ACT_REPOSITORY: ${{ github.repository }}
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- synchronize
|
||||||
|
- reopened
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build_test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- run: git fetch --force --tags
|
||||||
|
- name: Set up Node.js
|
||||||
|
uses: actions/setup-node@v6
|
||||||
|
with:
|
||||||
|
node-version: 22
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci --legacy-peer-deps
|
||||||
|
- name: Build libraries
|
||||||
|
run: npx nx run-many -t build
|
||||||
|
- name: Run tests
|
||||||
|
run: npx nx run-many -t test --code-coverage --passWithNoTests
|
||||||
|
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -44,3 +44,4 @@ Thumbs.db
|
|||||||
vite.config.*.timestamp*
|
vite.config.*.timestamp*
|
||||||
.cursor/rules/nx-rules.mdc
|
.cursor/rules/nx-rules.mdc
|
||||||
.github/instructions/nx.instructions.md
|
.github/instructions/nx.instructions.md
|
||||||
|
act_runner*
|
||||||
|
|||||||
Reference in New Issue
Block a user