Merge pull request #194 from matthias-Q/generated_as_expression #403
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/test | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
branches: | |
- 'main' | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: true | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-2019] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- run: npm install | |
- run: npm test | |
- run: scripts/test-keywords.sh | |
validate_tests: | |
runs-on: ["ubuntu-latest"] | |
strategy: | |
fail-fast: true | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
if [[ $(grep -rn --exclude=errors.txt ERROR test/ | wc -l) -gt 0 ]]; then | |
echo "Found 'ERROR' in tests: " | |
grep -rn --exclude=errors.txt ERROR test/ | cut -f1,2 -d: | |
exit 1 | |
else | |
exit 0 | |
fi |