-
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.
feat: add nextjs skeleton for the ui (#11)
Co-authored-by: Guillaume Belanger <[email protected]>
- Loading branch information
Showing
24 changed files
with
7,049 additions
and
70 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Build Frontend | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
nextjs-build: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ui | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use npm | ||
uses: actions/setup-node@v4 | ||
|
||
- name: Build frontend | ||
run: | | ||
npm install | ||
npm run build | ||
- name: Upload frontend files | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: frontend-static-files | ||
path: ui/out |
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,21 @@ | ||
name: Build GoCert | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
go-build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: "go.mod" | ||
|
||
- name: Download frontend files | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: frontend-static-files | ||
path: ui/out | ||
- name: Build | ||
run: go build ./... |
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,23 @@ | ||
name: Lint | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: "go.mod" | ||
|
||
- name: Download frontend files | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: frontend-static-files | ||
path: ui/out | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v5 | ||
with: | ||
version: v1.54 |
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,21 @@ | ||
name: Vet | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
go-vet: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: "go.mod" | ||
|
||
- name: Download frontend files | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: frontend-static-files | ||
path: ui/out | ||
- name: Go vet | ||
run: go vet ./... |
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,20 @@ | ||
name: Unit Test Frontend | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
nextjs-unit-tests: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ui | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use npm | ||
uses: actions/setup-node@v4 | ||
|
||
- name: Build frontend | ||
run: | | ||
npm install | ||
npm 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Unit Test GoCert | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
go-unit-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: "go.mod" | ||
|
||
- name: Download frontend files | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: frontend-static-files | ||
path: ui/out | ||
- name: Unit tests | ||
run: go test -cover ./... | ||
|
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
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
Oops, something went wrong.