Skip to content

Commit fad6d89

Browse files
authored
Only trigger GitHub actions if relevant files change (#72)
* Add `on.pull_request.paths` to gh actions * Format server/README.md to see if frontend action runs
1 parent 054c7d1 commit fad6d89

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

.github/workflows/auto-comment.yml

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Auto Comment on PRs
22
on:
33
pull_request:
44
types: [opened]
5+
paths: server/**
56
jobs:
67
auto-comment:
78
runs-on: ubuntu-latest

.github/workflows/backend-lint-test.yml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
pull_request:
44
branches:
55
- main
6+
paths: server/**
67
jobs:
78
lint-test:
89
runs-on: ubuntu-latest

.github/workflows/frontend-lint.yml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Frontend - Linting
33
on:
44
pull_request:
55
branches: [main]
6+
paths: client/**
67
jobs:
78
Linux:
89
runs-on: ubuntu-latest

server/README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
## Setup
2+
23
1. Copy `.env.example` to `.env` and fill in the values
34
2. Add Firebase Admin credentials to a file named `firebaseServiceAccountKey.json`, at the same level as the `.env` file.
45
3. Start up Docker Desktop
56
4. Spin up Postgres:
7+
68
```bash
79
docker-compose --env-file .env up
810
```
911

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

0 commit comments

Comments
 (0)