-
Notifications
You must be signed in to change notification settings - Fork 5
54 lines (50 loc) · 1.42 KB
/
ci.yml
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
46
47
48
49
50
51
52
53
54
# This action is run from the sequoia-pgp/fast-forward repository and
# modifies a different repository, sequoia-pgp/fast-forward-unit-test.
# We can create a fine-grained acess token that allows just modifying
# that repository by going to:
#
# https://github.com/settings/personal-access-tokens/new
#
# And entering:
#
# - Name: fast-forward-unit-tests
# - Expiration: Far in the future
# - Resource owner: sequoia-pgp
# - Only select repositories - sequoia-pgp/fast-forward-unit-tests
# - Permissions - select read and write permission for contents, issues,
# and pull requests.
#
# Add the secret to the fast-forward repository by going to:
#
# https://github.com/sequoia-pgp/fast-forward/settings/secrets/actions
#
# or:
#
# Repository, Secrets and variables, Actions, New repository secret
#
# And enter:
#
# - Name: FAST_FORWARD_UNIT_TESTS_TOKEN
# - Secret: The token
#
# Note: the name is meaningful and is used by the
# tests/fast-forward.sh script.
name: ci
on:
push:
permissions:
contents: write
pull-requests: write
issues: write
jobs:
compile:
name: Fast forward
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Check that /fast-forward fast forwards.
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FAST_FORWARD_UNIT_TESTS_TOKEN: ${{ secrets.FAST_FORWARD_UNIT_TESTS_TOKEN }}
run: tests/fast-forward.sh