Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI Cleanup #493

Merged
merged 5 commits into from
May 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 21 additions & 7 deletions .github/workflows/test.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Testing
name: Continuous Integration

on:
workflow_dispatch: null
Expand All @@ -8,6 +8,26 @@ on:
pull_request: null

jobs:
lint-tidy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
cache: false

- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: latest

- name: Run tidy
run: make tidy

- name: Fail if changes
run: git diff-index --exit-code HEAD

test:
runs-on: ubuntu-latest
env:
Expand All @@ -25,12 +45,6 @@ jobs:
go-version: 'stable'
- run: go version

- name: Update system packages
run: sudo apt-get update -y

- name: Install system deps
run: sudo apt-get install -y build-essential

- name: Setup Python
uses: actions/setup-python@v5
with:
Expand Down
23 changes: 0 additions & 23 deletions .github/workflows/pull_request.yml

This file was deleted.

6 changes: 0 additions & 6 deletions .github/workflows/release-cross-repo-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,6 @@ jobs:
go mod edit -replace github.com/linode/linodego=$linodego_dir
go mod tidy

- name: Update system packages
run: sudo apt-get update -y

- name: Install system deps
run: sudo apt-get install -y build-essential

- name: run tests
run: |
make int-test
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# linodego

![Tests](https://img.shields.io/github/actions/workflow/status/linode/linodego/test.yml?branch=main)
![Tests](https://img.shields.io/github/actions/workflow/status/linode/linodego/ci.yml?branch=main)
[![Release](https://img.shields.io/github/v/release/linode/linodego)](https://github.com/linode/linodego/releases/latest)
[![GoDoc](https://godoc.org/github.com/linode/linodego?status.svg)](https://godoc.org/github.com/linode/linodego)
[![Go Report Card](https://goreportcard.com/badge/github.com/linode/linodego)](https://goreportcard.com/report/github.com/linode/linodego)
Expand Down
5 changes: 3 additions & 2 deletions test/unit/util_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package unit

import (
"github.com/linode/linodego"
"github.com/linode/linodego/internal/testutil"
"regexp"
"testing"

"github.com/linode/linodego"
"github.com/linode/linodego/internal/testutil"

"github.com/jarcoal/httpmock"
)

Expand Down