Skip to content

Commit

Permalink
update ci pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
jxsl13 committed Oct 22, 2023
1 parent 0cafe35 commit 21fdda8
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 26 deletions.
15 changes: 15 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: 2
updates:
- package-ecosystem: gomod
directory: /
schedule:
interval: weekly
reviewers:
- "jxsl13"

- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
reviewers:
- "jxsl13"
30 changes: 30 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
on: [push, pull_request]
name: Test
jobs:
test:
strategy:
matrix:
go-version: [stable, oldstable]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v4

- name: Vet
run: go vet ./...

- name: Code Coverage
run: go test ./... -timeout 30s -race -count=1 -covermode=atomic -coverprofile=coverage.out

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.out
fail_ci_if_error: false
verbose: false
25 changes: 0 additions & 25 deletions .github/workflows/main.yml

This file was deleted.

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/jxsl13/twapi

go 1.19
go 1.21

require (
github.com/reiver/go-telnet v0.0.0-20180421082511-9ff0b2ab096e
Expand Down

0 comments on commit 21fdda8

Please sign in to comment.