Bump github.com/ipfs/boxo from 0.8.1 to 0.22.0 #208
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Linter | |
on: | |
push: | |
branches: | |
- '**' | |
pull_request: | |
branches: | |
- '**' | |
types: [ opened, synchronize, reopened ] | |
permissions: write-all | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code base | |
if: github.event_name == 'push' | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Check out code base | |
if: github.event_name == 'pull_request' | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Lint Code Base | |
uses: github/super-linter@v4 | |
env: | |
DEFAULT_BRANCH: 'main' | |
VALIDATE_MARKDOWN: true | |
VALIDATE_DOCKERFILE: true | |
VALIDATE_BASH: true | |
VALIDATE_BASH_EXEC: true | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
go: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code base | |
if: github.event_name == 'push' | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Check out code base | |
if: github.event_name == 'pull_request' | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Golang linter | |
uses: golangci/golangci-lint-action@v2 | |
shellcheck: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code base | |
if: github.event_name == 'push' | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Check out code base | |
if: github.event_name == 'pull_request' | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Run shellcheck with reviewdog | |
uses: reviewdog/action-shellcheck@v1 | |
misspell: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code base | |
if: github.event_name == 'push' | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Check out code base | |
if: github.event_name == 'pull_request' | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Run misspell with reviewdog | |
uses: reviewdog/action-misspell@v1 | |
alex: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code base | |
if: github.event_name == 'push' | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Check out code base | |
if: github.event_name == 'pull_request' | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Run alex with reviewdog | |
uses: reviewdog/action-alex@v1 | |
goreportcard: | |
if: ${{ github.ref == 'refs/heads/main' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Run Go report card | |
run: | | |
path=$(curl -sf -X POST -F "repo=github.com/$GITHUB_REPOSITORY" https://goreportcard.com/checks | jq -r '.redirect') | |
echo -e "\nSee report for https://goreportcard.com${path}" |