test utf emoji #566
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: PR Build and test | |
on: [pull_request] | |
permissions: | |
statuses: write | |
pull-requests: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./ | |
with: | |
addHoldComment: "true" | |
- run: npm ci | |
- run: npm run build | |
- run: npm run format-check | |
- run: npm run lint | |
- run: npm run pack | |
- run: npm test | |
# If something fails I want to set the status commit to "error" without adding anymore comments | |
# I'm happy to leave the PR with `/hold` if there is an error | |
- if: always() | |
uses: ./ | |
with: | |
addHoldComment: "true" | |
status: "${{ job.status }}" | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set final commit status | |
uses: actions/github-script@v7 | |
if: always() | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
with: | |
script: | | |
github.rest.repos.createCommitStatus({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
sha: context.payload.pull_request.head.sha, | |
state: 'success', | |
description: "🐛 testing utf emoji!", | |
context: 'test' | |
}) |