docs: update changelog #28
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
| name: Build latest | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| test: | |
| name: Run tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js 20 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Install dependencies | |
| run: find . -name 'package-lock.json' -execdir npm ci \; | |
| - name: Run server | |
| run: npm start & | |
| - name: Wait for server to start | |
| run: npx wait-on tcp:8585 | |
| - name: Run tests | |
| run: npm run test | |
| build-latest: | |
| name: Build latest | |
| runs-on: ubuntu-latest | |
| env: | |
| PROJECT_ID: ${{ secrets.GCP_BUILD_PROJECT_ID }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - id: auth | |
| uses: google-github-actions/auth@v2 | |
| with: | |
| credentials_json: ${{ secrets.GCP_BUILD_SERVICE_ACCOUNT_KEY }} | |
| - uses: google-github-actions/setup-gcloud@v2 | |
| - name: Build | |
| run: |- | |
| gcloud builds submit \ | |
| --quiet \ | |
| --tag "eu.gcr.io/$PROJECT_ID/functions:latest" |