Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
gouguoyin committed Nov 11, 2024
1 parent 8c6e77c commit 2703673
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 35 deletions.
28 changes: 11 additions & 17 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,29 @@
name: test

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

push
jobs:

test:
strategy:
matrix:
vm-os: [ubuntu-latest, windows-latest]
go-version: [ 1.16, 1.19 ]
vm-os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.vm-os }}
env:
GO111MODULE: on
GOPROXY: https://goproxy.cn
steps:
- name: Install go ${{ matrix.go-version }}
uses: actions/setup-go@v3
- name: Set up go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
go-version: '>=1.16.0'

- name: Install dependencies
uses: actions/checkout@v3
- name: Checkout repository
uses: actions/checkout@v4

- name: Test and create coverage file
- name: Create coverage file
run: go test -coverprofile='coverage.txt' -covermode=atomic

- name: Upload coverage file to codecov
uses: codecov/codecov-action@v3
- name: Upload coverage file
uses: codecov/codecov-action@v4
with:
token: ${{secrets.CODECOV_TOKEN}}
token: ${{secrets.CODECOV_TOKEN}}
18 changes: 0 additions & 18 deletions .github/workflows/translator.yml

This file was deleted.

0 comments on commit 2703673

Please sign in to comment.