chore: migrate from gitlab to GitHub #5
Workflow file for this run
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: Build Project | |
on: | |
pull_request: | |
jobs: | |
build: | |
strategy: | |
matrix: | |
# node-version: [18.x, 20.x, 22.x] | |
# os: [macos-latest, ubuntu-latest, windows-latest] | |
# TODO use all versions and os | |
node-version: [22.x] | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Set up JDK for Liquibase CLI | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 21 | |
distribution: temurin | |
- name: Print Docker Version | |
run: docker --version | |
- name: Check Node.js version | |
run: node -v | |
- name: Check npm versions | |
run: npm -v | |
- name: Run clean install | |
run: npm ci | |
- run: xvfb-run -a npm test | |
if: runner.os == 'Linux' | |
- run: npm test | |
if: runner.os != 'Linux' | |
- name: run e2e tests | |
run: xvfb-run -a npm run test:e2e -- --storage ./out/test-resources/${{ matrix.node-version }} | |
if: runner.os == 'Linux' | |
- name: npm e2e tests | |
run: npm run test:e2e -- --storage ./out/test-resources/${{ matrix.node-version }} | |
if: runner.os != 'Linux' | |
- name: "Upload e2e screenshots" | |
uses: actions/upload-artifact@v4 | |
with: | |
name: e2e-screenshots | |
path: ./out/test-resources/**/screenshots/** | |
retention-days: 5 | |
if-no-files-found: ignore |