Skip to content

Commit

Permalink
Only trigger GitHub actions if relevant files change (#72)
Browse files Browse the repository at this point in the history
* Add `on.pull_request.paths` to gh actions

* Format server/README.md to see if frontend action runs
  • Loading branch information
SheepTester authored Jan 27, 2025
1 parent 054c7d1 commit fad6d89
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/auto-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Auto Comment on PRs
on:
pull_request:
types: [opened]
paths: server/**
jobs:
auto-comment:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/backend-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
pull_request:
branches:
- main
paths: server/**
jobs:
lint-test:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/frontend-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Frontend - Linting
on:
pull_request:
branches: [main]
paths: client/**
jobs:
Linux:
runs-on: ubuntu-latest
Expand Down
5 changes: 4 additions & 1 deletion server/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
## Setup

1. Copy `.env.example` to `.env` and fill in the values
2. Add Firebase Admin credentials to a file named `firebaseServiceAccountKey.json`, at the same level as the `.env` file.
3. Start up Docker Desktop
4. Spin up Postgres:

```bash
docker-compose --env-file .env up
```

## Directly querying Postgres on a local build using `psql`
psql -h localhost -p 5432 -U acmucsd_dev -d hackathon_portal

psql -h localhost -p 5432 -U acmucsd_dev -d hackathon_portal

0 comments on commit fad6d89

Please sign in to comment.