node v25 #42
This file contains hidden or 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
| # 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: [25.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 | |
| with: | |
| serviceId: ${{ secrets.RENDER_ID }} | |
| apiKey: ${{ secrets.RENDER_API_KEY }} | |
| multipleDeployment: false #optional, default true | |