Skip to content

Commit

Permalink
👷 Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
harehare committed Oct 29, 2024
1 parent c964d61 commit 947b68f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: ".tool-versions"
- uses: extractions/setup-just@v2
- uses: actions/setup-go@v5
with:
go-version-file: "backend/go.mod"
- uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
Expand Down Expand Up @@ -79,6 +83,19 @@ jobs:
- name: Run Tests
working-directory: frontend
run: npm run test
- name: Create sqlite database
run: |
sqlite3 textusm.db
echo "database_url=textusm.db" >> $GITHUB_ENV
working-directory: backend
- name: Install dbmate
run: go install github.com/amacneil/dbmate@latest
- name: Migrate database
run: just migrate
working-directory: backend
env:
DB_TYPE: sqlite
DATABASE_URL: ${{ env.database_url }}
- name: Setup E2E
run: npm run test:e2e:init
working-directory: frontend
Expand All @@ -89,6 +106,7 @@ jobs:
API_ROOT: ${{ secrets.API_ROOT }}
WEB_ROOT: ${{ secrets.WEB_ROOT }}
APP_VERSION: ""
DATABASE_URL: ${{ env.database_url }}
FIREBASE_API_KEY: ${{ secrets.FIREBASE_API_KEY }}
FIREBASE_AUTH_DOMAIN: ${{ secrets.FIREBASE_AUTH_DOMAIN }}
FIREBASE_PROJECT_ID: ${{ secrets.FIREBASE_PROJECT_ID }}
Expand Down
1 change: 1 addition & 0 deletions backend/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ install-tools:
go install golang.org/x/tools/go/analysis/passes/fieldalignment/cmd/fieldalignment@latest
go install github.com/air-verse/air@latest
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
go install github.com/amacneil/dbmate@latest

run:
go run {{ main }}
Expand Down

0 comments on commit 947b68f

Please sign in to comment.