Skip to content

chore(cicd): setup test pipeline #4

chore(cicd): setup test pipeline

chore(cicd): setup test pipeline #4

Workflow file for this run

name: Pull request workflow
on:
pull_request:
types: [opened, reopened, synchronize, edited]
permissions:
pull-requests: read
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
env:
CI_JOB_NUMBER: 1
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
cache: npm
node-version: 18
- run: npm i
- run: npm run build
- uses: preactjs/compressed-size-action@v2
with:
pattern: ".dist/**/*.{js,ts,json}"
- run: npm run test
build-docker:
name: Build Docker image
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v2
- uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: false
semantic-pr:
name: Validate PR title for semantic versioning
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}