Skip to content

Commit

Permalink
ci: use test matrix for kubo version in test
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentsenta committed May 15, 2023
1 parent 2d532a3 commit 3ca2da3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 72 deletions.
70 changes: 0 additions & 70 deletions .github/workflows/test-master.yml

This file was deleted.

14 changes: 12 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
jobs:
test:
runs-on: 'ubuntu-latest'
strategy:
matrix:
target: ['latest', 'master']
defaults:
run:
shell: bash
Expand All @@ -22,7 +25,9 @@ jobs:
uses: ./gateway-conformance/.github/actions/extract-fixtures
with:
output: fixtures
- uses: ipfs/download-ipfs-distribution-action@v1
- uses: protocol/cache-go-action@v1
- run: go install github.com/ipfs/kubo/cmd/ipfs@${{ matrix.target }}
shell: bash
- name: Configure Kubo Gateway
run: |
ipfs init;
Expand All @@ -33,7 +38,12 @@ jobs:
- uses: ipfs/start-ipfs-daemon-action@v1
- name: Provision Kubo Gateway
run: |
find ./fixtures -name '*.car' -exec ipfs dag import {} \+
# Import car files
cars=$(find ./fixtures -name '*.car')
for car in $cars
do
ipfs dag import "$car"
done
# Import ipns records
records=$(find ./fixtures -name '*.ipns-record')
Expand Down

0 comments on commit 3ca2da3

Please sign in to comment.