Feat/databse backup to s3 #350
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
name: Node.js CI | |
on: | |
pull_request: | |
branches: | |
- develop | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install PNPM | |
run: npm install -g pnpm | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20.x' | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install --no-frozen-lockfile | |
- name: Check for leaked secrets | |
uses: zricethezav/gitleaks-action@v1.6.0 | |
- name: Prisma Generate | |
run: pnpm run prisma:generate | |
- name: Linter | |
run: pnpm run lint | |
- name: Compile | |
run: pnpm run build | |
- name: Run Tests | |
id: run_tests | |
run: | | |
if pnpm test; then | |
echo "Tests passed successfully" > test_results.md | |
echo "::set-output name=result::$(cat test_results.md)" | |
else | |
echo "Tests failed" > test_results.md | |
echo "::set-output name=result::$(cat test_results.md)" | |
exit 1 | |
fi | |
env: | |
CI: true | |
FIREBASE_PRIVATE_KEY: ${{ secrets.FIREBASE_PRIVATE_KEY }} |