From f151e31d741a6cb7b3f0801aad4c28c1e5df88f3 Mon Sep 17 00:00:00 2001 From: Laurent Senta Date: Mon, 15 May 2023 09:59:32 +0200 Subject: [PATCH] ci: add testing --- .github/workflows/test.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..53924d4 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,35 @@ +name: Test + +on: + workflow_dispatch: + push: + +jobs: + test: + runs-on: 'ubuntu-latest' + defaults: + run: + shell: bash + steps: + - name: Setup Go + uses: actions/setup-go@v3 + with: + go-version: 1.20.4 + - uses: actions/checkout@v3 + with: + path: 'ipfs-check' + - name: Build and Start + run: | + cd ipfs-check + go build -o ipfs-check + ./ipfs-check & + sleep 300 + - uses: ipfs/download-ipfs-distribution-action@v1 + - name: Configure Kubo Gateway + run: | + ipfs init; + - uses: ipfs/start-ipfs-daemon-action@v1 + - name: Tests + working-directory: ipfs-check + run: | + go test ./... \ No newline at end of file