Update dependency typescript to v5.5.2 #796
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: Continuous Integration Testing | |
on: | |
pull_request: | |
branches: | |
- 'master' | |
- 'main' | |
jobs: | |
unit-tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x, 19.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use NodeJS ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: npm install | |
run: rm -rf node_modules && yarn install --frozen-lockfile | |
- name: npm test | |
run: npm run test -- ${{ matrix.test }} | |
e2e-test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x, 19.x] | |
needs: [unit-tests] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Start Docker-Compose | |
run: docker-compose -f ./.devcontainer/docker-compose.yml up -d | |
- name: npm install | |
run: rm -rf node_modules && yarn install --frozen-lockfile | |
- name: Run tests | |
run: npm run test:e2e | |
env: | |
DATABASE_URL: postgres://vscode:notsecure@localhost:5432/wordpress-updates | |
- name: Collect coverage | |
run: npm run test:cov:total | |
env: | |
DATABASE_URL: postgres://vscode:notsecure@localhost:5432/wordpress-updates | |
- name: Stop Docker-Compose | |
run: docker-compose -f ./.devcontainer/docker-compose.yml down | |
automerge: | |
needs: e2e-test | |
if: contains(github.event.pull_request.user.login, 'dependabot') | |
runs-on: ubuntu-latest | |
steps: | |
- name: automerge | |
uses: pascalgn/automerge-action@v0.15.6 | |
env: | |
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' | |
MERGE_LABELS: '' | |
MERGE_METHOD: rebase |