mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-01 09:32:08 +00:00
Drop usage of the branches filter with a single asterisk as this matches against zero or more characters but not a forward slash, resulting in PRs to branch names with forwards slashes in them not having these workflow run against them as expected. Updates https://github.com/tailscale/corp/issues/33523 Signed-off-by: Mario Minardi <mario@tailscale.com>
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
name: webclient
|
|
on:
|
|
workflow_dispatch:
|
|
# For now, only run on requests, not the main branches.
|
|
pull_request:
|
|
paths:
|
|
- "client/web/**"
|
|
- ".github/workflows/webclient.yml"
|
|
- "!**.md"
|
|
# TODO(soniaappasamy): enable for main branch after an initial waiting period.
|
|
#push:
|
|
# branches:
|
|
# - main
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
webclient:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
- name: Install deps
|
|
run: ./tool/yarn --cwd client/web
|
|
- name: Run lint
|
|
run: ./tool/yarn --cwd client/web run --silent lint
|
|
- name: Run test
|
|
run: ./tool/yarn --cwd client/web run --silent test
|
|
- name: Run formatter check
|
|
run: |
|
|
./tool/yarn --cwd client/web run --silent format-check || ( \
|
|
echo "Run this command on your local device to fix the error:" && \
|
|
echo "" && \
|
|
echo " ./tool/yarn --cwd client/web format" && \
|
|
echo "" && exit 1)
|