-
Notifications
You must be signed in to change notification settings - Fork 111
45 lines (41 loc) · 1.38 KB
/
ci-pre-mergequeue.yml
File metadata and controls
45 lines (41 loc) · 1.38 KB
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
45
name: Pre Merge Queue Tasks
on:
pull_request:
types: [opened, synchronize]
env:
RUSTC_WRAPPER: sccache
SCCACHE_DIR: /sccache
SCCACHE_CACHE_SIZE: 512G
permissions:
contents: write
jobs:
# This job needs to be called main (the same as the ci.yml workflow)
# because of how merge queues work: https://stackoverflow.com/a/78030618
main:
container:
image: ghcr.io/feldera/feldera-dev:sha-cfae3f2af7e7676dde51af39ed76332f67d91b6a
options: --user=ubuntu
volumes:
- /sccache:/sccache
runs-on: [self-hosted]
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.CI_RELEASE }}
- uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit-3|${{ hashFiles('.pre-commit-config.yaml') }}
- run: pre-commit run --show-diff-on-failure --color=always --all-files
shell: bash
if: ${{ vars.CI_DRY_RUN != 'true' }}
- name: Print sccache stats
run: sccache --show-stats
- uses: stefanzweifel/git-auto-commit-action@b863ae1933cb653a53c021fe36dbb774e1fb9403
if: always()
with:
commit_message: "[ci] apply automatic fixes"
commit_user_name: feldera-bot
commit_user_email: feldera-bot@feldera.com
commit_author: feldera-bot <feldera-bot@feldera.com>
commit_options: "--no-verify --signoff"