mirror of
https://github.com/github/codeql-action.git
synced 2026-05-08 23:00:26 +00:00
56 lines
1.4 KiB
YAML
56 lines
1.4 KiB
YAML
name: PR Checks (Basic Checks and Runner)
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
runner-analyze-csharp-autobuild-macos:
|
|
name: Runner macos autobuild C# analyze
|
|
runs-on: macos-latest
|
|
|
|
env:
|
|
ACTIONS_RUNNER_DEBUG: 1
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Move codeql-action
|
|
shell: bash
|
|
run: |
|
|
mkdir ../action
|
|
mv * .github ../action/
|
|
mv ../action/tests/multi-language-repo/{*,.github} .
|
|
mv ../action/.github/workflows .github
|
|
|
|
- name: Build runner
|
|
run: |
|
|
cd ../action/runner
|
|
npm install
|
|
npm run build-runner
|
|
|
|
- name: Initialize dotnet
|
|
run: dotnet restore
|
|
|
|
- name: Run init
|
|
run: |
|
|
../action/runner/dist/codeql-runner-macos init --repository $GITHUB_REPOSITORY --languages csharp --github-url $GITHUB_SERVER_URL --github-auth ${{ github.token }}
|
|
|
|
- name: Check env
|
|
run: env
|
|
|
|
- name: Build code
|
|
shell: bash
|
|
run: |
|
|
../action/runner/dist/codeql-runner-macos autobuild
|
|
|
|
- name: Check env
|
|
if: always()
|
|
run: env
|
|
|
|
- name: Run analyze
|
|
run: |
|
|
../action/runner/dist/codeql-runner-macos analyze --repository $GITHUB_REPOSITORY --commit $GITHUB_SHA --ref $GITHUB_REF --github-url $GITHUB_SERVER_URL --github-auth ${{ github.token }}
|
|
env:
|
|
TEST_MODE: true
|
|
|
|
|