feat(commons): process metadata messages from before hooks #2593
Workflow file for this run
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 | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- "*" | |
push: | |
branches: | |
- "main" | |
- "hotfix-*" | |
jobs: | |
check-cache: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "yarn" | |
- name: yarn install & check-cache | |
run: | | |
yarn install --immutable --immutable-cache --check-cache | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "yarn" | |
- name: yarn install | |
run: | | |
yarn install --immutable --immutable-cache | |
# required to have types info, otherwise eslint will complain about any type | |
- name: yarn compile | |
run: | | |
yarn compile | |
- name: yarn lint | |
run: | | |
yarn lint | |
- name: yarn dlx sherif | |
run: | | |
yarn dlx sherif | |
prettier: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "yarn" | |
- name: yarn install | |
run: | | |
yarn install --immutable --immutable-cache | |
- name: yarn prettier | |
run: | | |
yarn prettier:check | |
build: | |
name: "Build" | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: [18, 20] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: browser-actions/setup-chrome@v1 | |
with: | |
chrome-version: stable | |
id: setup-chrome | |
- run: | | |
echo Installed chromium version: ${{ steps.setup-chrome.outputs.chrome-version }} | |
${{ steps.setup-chrome.outputs.chrome-path }} --version | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "yarn" | |
- name: yarn install | |
run: | | |
yarn install --immutable --immutable-cache | |
- run: yarn workspace allure-playwright playwright install chromium --with-deps | |
- name: yarn build | |
run: | | |
yarn run build | |
- name: yarn test | |
run: | | |
yarn run test |