presubmit.yml

 1# //.github/workflows:presubmit.yml
 2#
 3# This file exists to define the steps executed for a push to each tree matching
 4# the pattern `refs/heads/*`, excluding the default ref, when they are used as
 5# the head for a pull request against the default tree. For configuring the
 6# steps that occur after a push to the trunk branch, see
 7# `//.github/workflows:trunk.yml`.
 8---
 9name: presubmit
10
11on:
12  merge_group:
13    types:
14      - checks_requested
15  pull_request:
16    branches:
17      - trunk
18
19concurrency:
20  group: ${{ github.ref }}
21  cancel-in-progress: true
22
23permissions:
24  contents: read
25
26jobs:
27  lint:
28    uses: ./.github/workflows/lint.yml
29
30  build-and-test:
31    uses: ./.github/workflows/build-and-test.yml
32    secrets:
33      github-test-token: ${{ secrets.TEST_TOKEN_GITHUB }}
34      github-token-private: ${{ secrets._GITHUB_TOKEN_PRIVATE }}
35      github-token-public: ${{ secrets._GITHUB_TOKEN_PUBLIC }}
36      gitlab-api-token: ${{ secrets.GITLAB_API_TOKEN }}
37      gitlab-project-id: ${{ secrets.GITLAB_PROJECT_ID }}