Skip to content

Update translator.yml #476

Update translator.yml

Update translator.yml #476

Workflow file for this run

name: test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
strategy:
matrix:
vm-os: [ubuntu-latest, macos-latest, windows-latest]
go-version: [ 1.17, 1.18, 1.19 ]
runs-on: ${{ matrix.vm-os }}
env:
GO111MODULE: on
GOPROXY: https://goproxy.cn
steps:
- name: Install go ${{ matrix.go-version }}
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Install dependencies
uses: actions/checkout@v3
- name: Test and create coverage file
run: go test -coverprofile='coverage.txt' -covermode=atomic
- name: Upload coverage file to codecov
uses: codecov/codecov-action@v3
with:
token: ${{secrets.CODECOV_TOKEN}}