Add build and publish steps #3
@ -81,20 +81,6 @@ jobs:
|
|||||||
working-directory: ./frontend
|
working-directory: ./frontend
|
||||||
run: yarn lint
|
run: yarn lint
|
||||||
|
|
||||||
- name: Set frontend status
|
|
||||||
uses: actions/github-script@v7
|
|
||||||
with:
|
|
||||||
github-token: ${{ secrets.ACCESS_TOKEN }}
|
|
||||||
script: |
|
|
||||||
github.repos.createCommitStatus({
|
|
||||||
owner: context.repo.owner,
|
|
||||||
repo: context.repo.repo,
|
|
||||||
sha: context.sha,
|
|
||||||
state: 'success',
|
|
||||||
context: 'CI Frontend',
|
|
||||||
description: 'Frontend unit tests passed'
|
|
||||||
})
|
|
||||||
|
|
||||||
backend-jobs:
|
backend-jobs:
|
||||||
name: Set up Java for Backend Tests and Build
|
name: Set up Java for Backend Tests and Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -167,19 +153,5 @@ jobs:
|
|||||||
run:
|
run:
|
||||||
mvn clean test -Dspring.profiles.active=test
|
mvn clean test -Dspring.profiles.active=test
|
||||||
|
|
||||||
- name: Set backend status
|
|
||||||
uses: actions/github-script@v7
|
|
||||||
with:
|
|
||||||
github-token: ${{ secrets.ACCESS_TOKEN }}
|
|
||||||
script: |
|
|
||||||
github.repos.createCommitStatus({
|
|
||||||
owner: context.repo.owner,
|
|
||||||
repo: context.repo.repo,
|
|
||||||
sha: context.sha,
|
|
||||||
state: 'success',
|
|
||||||
context: 'CI Backend',
|
|
||||||
description: 'Backend unit tests passed'
|
|
||||||
})
|
|
||||||
|
|
||||||
- name: Done
|
- name: Done
|
||||||
run: echo "Workflow successfully completed."
|
run: echo "Workflow successfully completed."
|
||||||
Reference in New Issue
Block a user