Skip to content

feat(search): implement search command for movies and TV shows #11

feat(search): implement search command for movies and TV shows

feat(search): implement search command for movies and TV shows #11

Workflow file for this run

name: Push workflow
on: push
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
os:
- linux
- darwin
- windows
- freebsd
arch:
- amd64
- arm64
steps:
- uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: "1.17"
- name: Run build
run: go build -o trakt-cli-$GOOS-$GOARCH
env:
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }}
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: latest
commitlint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Lint Commit
uses: wagoid/commitlint-github-action@v3
release:
name: Publish new release
needs: [build, lint, commitlint]
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 14
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: npx semantic-release
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}