forked from fastenhealth/fasten-onprem
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d353c15
commit c9d22fc
Showing
2 changed files
with
67 additions
and
71 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
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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Development | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
- reopened | ||
|
||
jobs: | ||
test-frontend: | ||
name: Test Frontend | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: test | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.x | ||
- name: Test Frontend | ||
run: | | ||
make test-frontend-coverage | ||
- name: Upload coverage | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: coverage | ||
path: ${{ github.workspace }}/frontend/coverage/fastenhealth/lcov.info | ||
retention-days: 1 | ||
test-backend: | ||
name: Test Backend | ||
runs-on: ubuntu-latest | ||
container: ghcr.io/packagrio/packagr:latest-golang | ||
env: | ||
STATIC: true | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Test Backend | ||
run: | | ||
go install github.com/golang/mock/mockgen@v1.6.0 | ||
go generate ./... | ||
make test-backend-coverage | ||
CGO_ENABLED=0 go build -buildvcs=false ./backend/cmd/fasten/ | ||
- name: Upload coverage | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: coverage | ||
path: ${{ github.workspace }}/backend-coverage.txt | ||
retention-days: 1 | ||
compile-storybook: | ||
name: Compile Storybook | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: | | ||
make build-storybook | ||