Merge pull request #352 from formidablejs/patch/github-action-node-tests #1045
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 Tests | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x, 20.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
- name: Install modules | |
run: npm ci | |
- name: Build | |
run: npm run build | |
- name: Prepare e2e tests | |
run: npm run pre-test | |
- name: Run e2e tests | |
run: npm run test:e2e | |
- name: Clean up | |
run: ./scripts/5-clean-up.sh |