Skip to content

Commit

Permalink
ci: improve github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
cecobask committed Oct 6, 2023
1 parent 83ed9a8 commit 43a97cc
Show file tree
Hide file tree
Showing 154 changed files with 30 additions and 45,406 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/insights.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
name: insights
on:
workflow_dispatch:
env:
Expand All @@ -7,14 +6,19 @@ jobs:
unfollowers:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
- name: Check out code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.21
cache: true
- name: Build
run: make build
- name: Add build directory to path
run: echo "${GITHUB_WORKSPACE}/build" >> $GITHUB_PATH
- name: Download Instagram information locally
run: go run main.go information download $ARCHIVE_URL
run: instagram information download $ARCHIVE_URL
- name: Find out which Instagram users are not following back
run: go run main.go followdata unfollowers
run: instagram followdata unfollowers
- name: Cleanup local Instagram information
run: go run main.go information cleanup
run: instagram information cleanup
32 changes: 18 additions & 14 deletions .github/workflows/quality.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
name: quality
on:
push:
branches:
Expand All @@ -10,30 +9,35 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
- name: Check out code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.21
cache: true
- uses: golangci/golangci-lint-action@v3
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54.2
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
- name: Check out code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.21
cache: false
- run: make build
- name: Build
run: make build
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
- name: Check out code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.21
cache: false
- run: make test

- name: Run tests
run: make test
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ lint-fix:
golangci-lint run --fix

test:
go test ./...
go test -race ./...
201 changes: 0 additions & 201 deletions vendor/github.com/inconshreveable/mousetrap/LICENSE

This file was deleted.

23 changes: 0 additions & 23 deletions vendor/github.com/inconshreveable/mousetrap/README.md

This file was deleted.

16 changes: 0 additions & 16 deletions vendor/github.com/inconshreveable/mousetrap/trap_others.go

This file was deleted.

42 changes: 0 additions & 42 deletions vendor/github.com/inconshreveable/mousetrap/trap_windows.go

This file was deleted.

21 changes: 0 additions & 21 deletions vendor/github.com/jedib0t/go-pretty/v6/LICENSE

This file was deleted.

Loading

0 comments on commit 43a97cc

Please sign in to comment.