Skip to content

chore: support for global public read in bridge config #37

chore: support for global public read in bridge config

chore: support for global public read in bridge config #37

Workflow file for this run

name: ci
on:
push:
branches:
- 'main'
pull_request:
branches:
- '*'
jobs:
build:
runs-on: ubuntu-latest
needs: test
# strategy:
# matrix:
# go: [ '1.18', '1.19', '1.20' ]
steps:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '^1.16'
- name: Check code
uses: actions/checkout@v3
- name: Run go mod tidy on all modules
run: find . -name go.mod -execdir go mod tidy \;
- name: Verify no changes from go mod tidy.
run: |
if [ -n "$(git status --porcelain)" ]; then
echo 'To fix this check, run "goimports -w . && find . -name go.mod -execdir go mod tidy \;"'
git status # Show the files that failed to pass the check.
exit 1
fi
- name: go vet
# Use find to build all modules. '-execdir ... ;' doesn't set an exit code
# based on command results. So, create a file if a build fails and check
# if the file exists to set the right exit code.
run: |
ROOT_DIR=$(pwd) \
find . -name go.mod -execdir sh -c 'go vet ./... || touch $ROOT_DIR/vet_failed.txt' \; ; \
test ! -f vet_failed.txt
- name: Build code
# Use find to build all modules. '-execdir ... ;' doesn't set an exit code
# based on command results. So, create a file if a build fails and check
# if the file exists to set the right exit code.
run: |
ROOT_DIR=$(pwd) \
find . -name go.mod -execdir sh -c 'go build ./... || touch $ROOT_DIR/build_failed.txt' \; ; \
test ! -f build_failed.txt
- name: shellcheck
run: find . -name "*.sh" -exec shellcheck {} \;
test:
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '^1.16'
- name: Checkout
uses: actions/checkout@v3
- name: Run test
run: |
mkdir -p cmd
echo '${{ secrets.CREDENTIALS_FILE }}' > cmd/keys.json
go test -v ./...
env:
API_KEY: ${{ secrets.API_KEY }}
API_SECRET: ${{ secrets.API_SECRET }}
GOOGLE_BUCKET_NAME: ${{ secrets.GOOGLE_BUCKET_NAME }}
AWS_BUCKET_NAME: ${{ secrets.AWS_BUCKET_NAME }}
AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }}
AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }}
CREDENTIALS_FILE_PATH: ${{ secrets.CREDENTIALS_FILE_PATH }}
PINATA_JWT: ${{ secrets.PINATA_JWT }}
WASABI_API_KEY: ${{ secrets.WASABI_API_KEY }}
WASABI_SECRET_KEY: ${{ secrets.WASABI_SECRET_KEY }}
WASABI_BUCKET_NAME: ${{ secrets.WASABI_BUCKET_NAME }}
WASABI_REGION: ${{ secrets.WASABI_REGION }}