Skip to content

feat!: update to work with w3up api (#89) #130

feat!: update to work with w3up api (#89)

feat!: update to work with w3up api (#89) #130

Workflow file for this run

name: Test
on:
pull_request:
push:
branches:
- main
- 'releases/*'
jobs:
run-action:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: run 1 - upload
uses: ./
id: run1
with:
path_to_add: 'test/fixtures'
proof: ${{ secrets.W3_PROOF }}
secret_key: ${{ secrets.W3_PRINCIPAL }}
- name: test run 1 output
run: echo "unexpected output cid ${{ steps.run1.outputs.cid }}" && exit 1
if: ${{ steps.run1.outputs.cid != 'bafybeifpw7nrh374rzfcxpaw3bkp6fr7djmujg5wvib6ma7i7n76t3k53q' }}
- name: run 2 - upload (wrap=false)
uses: ./
id: run2
with:
wrap: false
path_to_add: 'test/fixtures'
proof: ${{ secrets.W3_PROOF }}
secret_key: ${{ secrets.W3_PRINCIPAL }}
- name: test run 2 output
run: echo "unexpected output cid ${{ steps.run2.outputs.cid }}" && exit 1
if: ${{ steps.run2.outputs.cid != 'bafkreigh2akiscaildcqabsyg3dfr6chu3fgpregiymsck7e7aqa4s52zy' }}
- name: run 3 - upload (hidden=true)
uses: ./
id: run3
with:
hidden: true
path_to_add: 'test/fixtures'
proof: ${{ secrets.W3_PROOF }}
secret_key: ${{ secrets.W3_PRINCIPAL }}
- name: test run 3 output
run: echo "unexpected output cid ${{ steps.run3.outputs.cid }}" && exit 1
if: ${{ steps.run3.outputs.cid != 'bafybeiht4hxkewkiqwa3rbw6bnlom2s7wajkbspsgjgn6wojioii4rh77y' }}