Skip to content

Merge pull request #117 from NFDI4Chem/development #26

Merge pull request #117 from NFDI4Chem/development

Merge pull request #117 from NFDI4Chem/development #26

# This worklflow will perform following actions when the code is pushed to main branch.
# - Run end to end test
# - Test linting.
# - Trigger release-please action to create release which needs e2etest & lint to pass first.
#
# Maintainers:
# - name: Nisha Sharma
# - email: [email protected]
name: release-please
on:
push:
branches:
- main
jobs:
e2etest:
runs-on: ubuntu-latest
strategy:
matrix:
project: [chromium, firefox, webkit]
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install dependencies
run: npm ci
- name: Install Playwright
run: npx playwright install --with-deps
- name: Build test application
run: npm run build-no-minify
- name: Run E2E tests on ${{ matrix.project }}
run: npx playwright test --project ${{ matrix.project }}
continue-on-error: ${{ matrix.project == 'webkit' }}
- name: Upload test results
if: always()
uses: actions/upload-artifact@v3
with:
name: test-results-${{ matrix.project }}
path: test-results
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16.x
- name: Install dependencies
run: npm ci
- name: Run ESLint
run: npm run eslint
- name: Run Prettier
run: npm run prettier
- name: Check types
run: npm run check-types
release-please:
runs-on: ubuntu-latest
needs: ['lint', 'e2etest']
steps:
- uses: google-github-actions/release-please-action@v3
with:
release-type: node
package-name: release-please-action
token: ${{ secrets.GITHUB_TOKEN }}
prerelease: true