зеркало из https://github.com/github/codeql.git
Swift: split codegen action and fix dependencies
This commit is contained in:
Родитель
de0fa9e456
Коммит
9bf4c72085
|
@ -0,0 +1,27 @@
|
|||
name: "Swift: Check code generation"
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- "swift/**"
|
||||
- .github/workflows/swift-codegen.yml
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
codegen:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v3
|
||||
with:
|
||||
python-version: '~3.7'
|
||||
cache: 'pip'
|
||||
- uses: ./.github/actions/fetch-codeql
|
||||
- uses: bazelbuild/setup-bazelisk@v2
|
||||
- name: Check code generation
|
||||
run: |
|
||||
pip install -r swift/codegen/requirements.txt
|
||||
bazel run //swift/codegen
|
||||
git add .
|
||||
git diff --exit-code --stat HEAD
|
|
@ -12,17 +12,6 @@ defaults:
|
|||
working-directory: swift
|
||||
|
||||
jobs:
|
||||
codegen:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ./.github/actions/fetch-codeql
|
||||
- uses: bazelbuild/setup-bazelisk@v2
|
||||
- name: Check code generation
|
||||
run: |
|
||||
bazel run //swift/codegen
|
||||
git add .
|
||||
git diff --exit-code --stat HEAD
|
||||
qlformat:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
|
Загрузка…
Ссылка в новой задаче