-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from sail-host/feat/cicd-for-project-testing
feat: add github action for frontent testing
- Loading branch information
Showing
3 changed files
with
67 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Back Testing | ||
|
||
on: | ||
push: | ||
branches: ["master", "dev", "feat/*"] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Bun | ||
uses: oven-sh/setup-bun@v2 | ||
|
||
- name: Build React Project | ||
working-directory: ./web | ||
run: | | ||
bun install | ||
bun run build | ||
- name: Set up Golang | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: "1.22" | ||
|
||
- name: Run tests | ||
run: make test | ||
|
||
- name: Build application | ||
run: make prod |
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,31 @@ | ||
name: Front Testing Types | ||
|
||
on: | ||
push: | ||
branches: ["master", "dev", "feat/*"] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Bun | ||
uses: oven-sh/setup-bun@v2 | ||
|
||
- name: Install dependencies | ||
working-directory: ./web | ||
run: bun install | ||
|
||
- name: Lint project | ||
working-directory: ./web | ||
run: bun run lint | ||
|
||
- name: Build project | ||
working-directory: ./web | ||
run: bun run build | ||
|
||
# - name: Run tests | ||
# working-directory: ./web | ||
# run: bun run test |
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