Skip to content

Commit

Permalink
CI Cleanup (#493)
Browse files Browse the repository at this point in the history
  • Loading branch information
zliang-akamai committed May 1, 2024
1 parent 2d18d6b commit ab37ae8
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 39 deletions.
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

0 comments on commit ab37ae8

Please sign in to comment.