You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
# This is used to load Environment-level secrets, from the specified environment.
# Instead, repository secrets are loaded by default.
environment: production
env:
SUPER_SECRET: ${{ secrets.SUPER_SECRET }} # Must be set as a GitHub secret
DB_URL: ${{ secrets.DB_URL }} # Must be set as a GitHub secret
strategy:
matrix:
node-version: [22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
name: Use Node.js ${{ matrix.node-version }}
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm test
deploy:
name: Deploy to Render
runs-on: ubuntu-latest
needs: test
steps:
- name: Trigger deployment
uses: sws2apps/render-deployment@main #consider using pin for dependabot auto update