ci: fix helia interop
Fixes #10275 See https://github.com/ipfs/helia/issues/359#issuecomment-1882662783
Jorropo committed
Jan 9, 2024 at 10:42 UTC
2f91074b5145865281a1c70392cee54afa2d8bd0
1 file changed
+6
-7
.github/workflows/build.yml
+6
-7
@@ -52,9 +52,6 @@ jobs:
52
defaults:
53
run:
54
shell: bash
55
- strategy:
56
- matrix:
57
- repo-to-test-against: ["helia", "helia-ipns", "helia-unixfs", "helia-car", "helia-dag-json", "helia-dag-cbor", "helia-json", "helia-mfs"] # this needs to be manually kept in sync as new helia tests are written
55
steps:
56
- uses: actions/setup-node@v3
57
with:
@@ -69,17 +66,19 @@ jobs:
66
- uses: actions/cache@v3
67
with:
68
path: ${{ steps.npm-cache-dir.outputs.dir }}
72
- key: ${{ runner.os }}-${{ github.job }}-${{ matrix.repo-to-test-against }}-${{ hashFiles('**/package-lock.json') }}
73
- restore-keys: ${{ runner.os }}-${{ github.job }}-${{ matrix.repo-to-test-against }}-
69
+ key: ${{ runner.os }}-${{ github.job }}-helia-${{ hashFiles('**/package-lock.json') }}
70
+ restore-keys: ${{ runner.os }}-${{ github.job }}-helia-
71
- run: sudo apt update
72
- run: sudo apt install -y libxkbcommon0 libxdamage1 libgbm1 libpango-1.0-0 libcairo2 # dependencies for playwright
73
- uses: actions/checkout@v4
74
with:
78
- repository: ipfs/${{ matrix.repo-to-test-against }}
79
- fetch-depth: 0
75
+ repository: ipfs/helia
76
+ fetch-depth: 1
77
path: interop
78
+ ref: 'ea5533c794df844c9fb9812e85e2f5e6af09efeb' # temporary while this commit is being released
79
- name: Checkout latest tag
80
run: |
81
+ exit 0 # temporary while ea5533c794df844c9fb9812e85e2f5e6af09efeb is released
82
export TAG="$(git describe --tags --abbrev=0)"
83
echo "Running tests against: $TAG"
84
git checkout "$TAG"