Release v1.2.7 #5
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: Testing on "main" branch repo opened pull request push | |
on: | |
pull_request_target: | |
types: [opened, synchronize] | |
branches: | |
- 'main' | |
paths: | |
- '**/*.js' | |
- '**/*.ts' | |
- '**/*.jsx' | |
- '**/*.tsx' | |
- '**/*.cjs' | |
- '**/*.mjs' | |
- '**/*.json' | |
- '**/pnpm-lock.yaml' | |
- '!**/package.json' | |
- '!.github/**' | |
- '!**/.gitignore' | |
- '!**/.eslintrc.json' | |
- '!**/.prettierrc.json' | |
- '!**/*.md' | |
- '!**/LICENSE' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
environment: CI/CD | |
strategy: | |
matrix: | |
node-version: ['lts/*'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@main | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Use latest pnpm | |
uses: pnpm/action-setup@master | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@main | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: | | |
pnpm install --frozen-lockfile | |
- name: Run e2e tests on staging | |
run: | | |
pnpm run test:e2e |