-
Notifications
You must be signed in to change notification settings - Fork 16
53 lines (43 loc) · 1.34 KB
/
test.yml
File metadata and controls
53 lines (43 loc) · 1.34 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
46
47
48
49
50
51
52
53
name: Test
on:
push:
pull_request:
permissions: {}
jobs:
version-matrix:
strategy:
fail-fast: false
matrix:
go-version: [oldstable, stable]
platform: [ubuntu-latest, macos-latest, windows-latest]
permissions:
contents: read
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Install Go
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
with:
go-version: ${{ matrix.go-version }}
- name: Validate
if: matrix.platform == 'ubuntu-latest'
run: make validate
- name: Test
run: make test
- name: Check index files
shell: bash
run: |
ls data/pack-*.pack | \
grep -v 407497645643e18a7ba56c6132603f167fe9c51c00361ee0c81d74a8f55d0ee2 | \
grep -v ee4fef0ef8be5053ebae4ce75acf062ddf3031fb | \
xargs -I{} git verify-pack -v {}
- name: Re-generate reverse index files
shell: bash
run: |
ls data/pack-*.pack | \
grep -v 407497645643e18a7ba56c6132603f167fe9c51c00361ee0c81d74a8f55d0ee2 | \
grep -v ee4fef0ef8be5053ebae4ce75acf062ddf3031fb | \
xargs -I{} git index-pack --rev-index -v {}
git status
git diff-index --quiet HEAD --