test: Add e2e test workflow #8
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: E2E Automatic Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Use Node.js 20.11.0 | |
uses: actions/[email protected] | |
with: | |
node-version: 20.11.0 | |
- name: Install dependencies | |
run: npm ci | |
- name: Build UI5 Linter | |
run: npm run build | |
- name: Run tests against sample project | |
run: cd test/fixtures/linter/projects/com.ui5.troublesome.app && ../../../../../bin/ui5lint.js --format=json > ../../../../../ui5lint-e2e-results.json 2>&1 || true | |
- name: Compare results | |
run: npm run ci:e2e |