Capture and display all output from the build process #322
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: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [22.x] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Reconfigure git to use HTTP authentication | |
run: > | |
git config --global url."https://github.com/".insteadOf ssh://[email protected]/ | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: | | |
npm ci | |
npm install @rollup/rollup-linux-x64-gnu | |
- run: npm run build | |
- name: run tests | |
env: | |
HOST: localhost | |
VITE_URL: https://$HOST | |
VITE_SERVER_PORT: 5000 | |
API_HOST: https://testrant.internet.ee | |
PUBLIC_API_HOST: https://www.internet.ee | |
PUBLIC_API_KEY: 4395743059dsfksdfyds8f7334 | |
CLIENT_ID: eis_client_test | |
CLIENT_SECRET: secret12345 | |
ISSUER_URL: https://tara-test.ria.ee | |
TOKEN_PATH: /oidc/token | |
JWKS_PATH: /oidc/jwks | |
AUTH_PATH: /oidc/authorize | |
REDIRECT_URL: /auth/callback | |
SESSION_SECRET: secret555555 | |
HTTPS: true | |
run: npm run test |