summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/unicop.yml
blob: 868b3d7bbf8e75c1b035d73345a05f8cef211149 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
name: Unicop - find evil unicode
on:
  pull_request:
    paths:
      - .github/workflows/unicop.yml
      - '**/*.rs'
      - '**/*.swift'
      - '**/*.go'
      - '**/*.py'
      # Javascript/Typescript
      - '**/*.ts'
      - '**/*.js'
      # Kotlin
      - '**/*.kt'
      - '**/*.kts'
      # C/C++
      - '**/*.cpp'
      - '**/*.h'
  workflow_dispatch:

permissions: {}

jobs:
  unicop:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Checkout submodules
        run: |
          git config --global --add safe.directory '*'
          git submodule update --init --depth=1 dist-assets/binaries
          git submodule update --init --depth=1 windows
          git submodule update --init --depth=1 wireguard-go-rs/libwg/wireguard-go

      - name: Install Rust toolchain
        run: rustup override set stable

      - name: Install unicop
        run: cargo install --locked unicop

      - name: Check for unwanted unicode
        run: unicop --verbose .