Skip to content

Commit

Permalink
Update CD
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuamotoaki committed May 30, 2024
1 parent ceaddff commit c61cfda
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
PUBLIC_SUPABASE_URL: ${{ secrets.PUBLIC_SUPABASE_URL }}
REDIS_PASSWORD: ${{ secrets.REDIS_PASSWORD }}
SERVICE_KEY: ${{ secrets.SERVICE_KEY }}
API_ACCESS_TOKEN: ${{ secrets.API_ACCESS_TOKEN }}
steps:
- name: Git clone the repository
uses: actions/checkout@v3
Expand All @@ -41,6 +42,7 @@ jobs:
PUBLIC_SUPABASE_URL: ${{ secrets.PUBLIC_SUPABASE_URL }}
REDIS_PASSWORD: ${{ secrets.REDIS_PASSWORD }}
SERVICE_KEY: ${{ secrets.SERVICE_KEY }}
API_ACCESS_TOKEN: ${{ secrets.API_ACCESS_TOKEN }}
steps:
- name: Git clone the repository
uses: actions/checkout@v3
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Run tests on PR to main

on:
pull_request:
branches:
- main

jobs:
TestBuild:
runs-on: ubuntu-latest
env:
PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.PUBLIC_SUPABASE_ANON_KEY }}
PUBLIC_SUPABASE_URL: ${{ secrets.PUBLIC_SUPABASE_URL }}
REDIS_PASSWORD: ${{ secrets.REDIS_PASSWORD }}
SERVICE_KEY: ${{ secrets.SERVICE_KEY }}
API_ACCESS_TOKEN: ${{ secrets.API_ACCESS_TOKEN }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install dependencies
run: npm i
- name: Test build
run: npm run build

0 comments on commit c61cfda

Please sign in to comment.