-
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.
Merge pull request #42 from COS301-SE-2024/v0.0.1
v0.0.1
- Loading branch information
Showing
452 changed files
with
104,330 additions
and
16,111 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,18 @@ | ||
--- | ||
name: Task | ||
about: Create a task to be implemented | ||
title: "[TASK]" | ||
labels: task | ||
--- | ||
|
||
**Task Request** | ||
|
||
- [ ] Task 1 | ||
- [ ] Task 2 | ||
- [ ] Task 3 | ||
- [ ] Task n | ||
|
||
<tag_user_here>, please tick off as you complete each task by clicking on the task you are done with in this comment | ||
|
||
**Additional info** | ||
Any additional info, articles that you think may help the developer should be added here. |
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,42 @@ | ||
name: Deploy Landing page | ||
|
||
on: | ||
push: | ||
branches: ["not-yet-specified"] | ||
|
||
workflow_dispatch: | ||
|
||
defaults: | ||
run: | ||
working-directory: frontend/occupi | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Bun | ||
uses: oven-sh/setup-bun@v1 | ||
with: | ||
bun-version: latest # or "latest", "canary", <sha> | ||
|
||
- name: Install dependencies | ||
run: bun install | ||
|
||
- name: Build Next.js app | ||
run: bun run build | ||
|
||
- name: Export static files (if needed) | ||
run: bun export | ||
|
||
- name: Add SSH key | ||
uses: webfactory/ssh-agent@v0.5.3 | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
|
||
- name: Deploy to server | ||
run: | | ||
rsync -avz --delete-after frontend/occupi/out ${{ secrets.DEPLOY_SERVER }}:${{ secrets.DEPLOY_PATH }} |
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,79 @@ | ||
name: Lint, Test and Build golang | ||
|
||
on: | ||
pull_request: | ||
branches: ["develop"] | ||
paths: [ | ||
"occupi-backend/cmd/**", | ||
"occupi-backend/configs/**", | ||
"occupi-backend/pkg/**", | ||
"occupi-backend/.golangci.yml", | ||
"occupi-backend/tests/**", | ||
] | ||
|
||
workflow_dispatch: | ||
|
||
defaults: | ||
run: | ||
working-directory: occupi-backend | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.21' # Specify the Go version you are using | ||
|
||
- name: Install golangci-lint | ||
run: | | ||
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest | ||
- name: Run golangci-lint | ||
run: | | ||
golangci-lint run | ||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.21' # Specify the Go version you are using | ||
|
||
- name: Run tests | ||
run: | | ||
go test ./tests/... -race -coverprofile=coverage.out -covermode=atomic | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/codecov-action@v4.0.1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.21' # Specify the Go version you are using | ||
|
||
- name: Build the code | ||
run: | | ||
go build -v cmd/occupi-backend/main.go |
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,63 @@ | ||
name: Lint, Test, Build Web | ||
|
||
on: | ||
pull_request: | ||
branches: ["develop"] | ||
paths: [ | ||
"frontend/occupi-web/**", | ||
] | ||
|
||
workflow_dispatch: | ||
|
||
defaults: | ||
run: | ||
working-directory: frontend/occupi-web | ||
|
||
jobs: | ||
# Lint job | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Bun | ||
uses: oven-sh/setup-bun@v1 | ||
with: | ||
bun-version: latest # or "latest", "canary", <sha> | ||
|
||
- name: Lint with ESLint | ||
run: bun run lint | ||
|
||
# Test job | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Bun | ||
uses: oven-sh/setup-bun@v1 | ||
with: | ||
bun-version: latest # or "latest", "canary", <sha> | ||
|
||
- name: Test with Jest | ||
run: bun run test | ||
|
||
# Build job | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Bun | ||
uses: oven-sh/setup-bun@v1 | ||
with: | ||
bun-version: latest # or "latest", "canary", <sha> | ||
|
||
- name: Install dependencies with Bun | ||
run: bun install | ||
|
||
- name: Build with Next.js | ||
run: bun run build |
This file was deleted.
Oops, something went wrong.
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,34 @@ | ||
name: Test Mobile | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- develop | ||
paths: [ | ||
"frontend/occupi-mobile3/**" | ||
] | ||
|
||
workflow_dispatch: | ||
|
||
defaults: | ||
run: | ||
working-directory: frontend/occupi-mobile3 | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Install Dependencies | ||
run: npm install --legacy-peer-deps | ||
|
||
- name: Run Tests | ||
run: npm run test-ci |
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 @@ | ||
node_modules |
Oops, something went wrong.