ci: Add Nsolid runtime to CI and Integration tests #5332 #19
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: integration Alternative Runtimes | |
on: | |
push: | |
branches: | |
- main | |
- master | |
- next | |
- 'v*' | |
paths-ignore: | |
- 'docs/**' | |
- '*.md' | |
pull_request: | |
paths-ignore: | |
- 'docs/**' | |
- '*.md' | |
jobs: | |
install-production: | |
runs-on: ${{ matrix.os }} | |
permissions: | |
contents: read | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
runtime: [nsolid] | |
node-version: [18, 20] | |
pnpm-version: [8] | |
include: | |
- nsolid-version: 5 | |
node-version: 18 | |
runtime: nsolid | |
- nsolid-version: 5 | |
node-version: 20 | |
runtime: nsolid | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- uses: nodesource/setup-nsolid@v1 | |
if: ${{ matrix.runtime == 'nsolid' }} | |
with: | |
node-version: ${{ matrix.node-version }} | |
nsolid-version: ${{ matrix.nsolid-version }} | |
- name: Install Pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: ${{ matrix.pnpm-version }} | |
- name: Install Production | |
run: | | |
pnpm install --prod | |
- name: Run server | |
run: | | |
node integration/server.js & | |
- name: Test | |
if: ${{ success() }} | |
run: | | |
bash integration/test.sh |