Skip to content

build: bump start-server-and-test from 2.0.7 to 2.0.8 #2916

build: bump start-server-and-test from 2.0.7 to 2.0.8

build: bump start-server-and-test from 2.0.7 to 2.0.8 #2916

Workflow file for this run

name: Pull Request Check
on: [pull_request]
permissions:
contents: write
pull-requests: write
jobs:
pr_check:
strategy:
fail-fast: false
matrix:
command:
- lint:eslint
- lint:stylelint
- test
- build:prod
- e2e
name: ${{ matrix.command }}
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v2
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'yarn'
- name: 'Install dependencies'
run: yarn install --immutable
- name: 'Run ${{ matrix.command }}'
run: yarn ${{ matrix.command }}
commitlint:
runs-on: ubuntu-latest
if: github.actor != 'dependabot[bot]'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: 'Checkout'
uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: '17'
- name: 'Commitlint'
uses: wagoid/commitlint-github-action@v1
dependabot:
needs: [pr_check]
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
- name: Approve a PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --rebase "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}