md中可以使用樣版導入css或者其他md內容 (#6) #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions | |
name: Go Test | |
on: | |
push: | |
branches-ignore: | |
- temp | |
pull_request: | |
branches-ignore: | |
- temp | |
defaults: | |
run: | |
working-directory: . | |
shell: pwsh | |
jobs: | |
test: | |
strategy: | |
matrix: | |
# [ubuntu-latest, macos-latest, windows-latest] | |
platform: [ windows-latest ] | |
go-version: [ 1.23.x ] | |
runs-on: ${{ matrix.platform }} | |
name: Integration tests | |
steps: | |
- name: Check out code into the Go module directory. | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
# - name: Update specific submodules | |
# run: | |
# git submodule update --init --recursive reveal.js ` | |
# git submodule update --init --recursive plugin/guess ` | |
# git submodule update --init --recursive plugin/marker | |
- name: Install Go. | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
check-latest: true | |
cache-dependency-path: go.sum | |
cache: true | |
- name: go mod tidy | |
run: go mod tidy | |
- name: test All | |
run: go test -v -coverpkg=./... -coverprofile="coverage.txt" ./... | |
- name: Cover Func | |
run: go tool cover -func="coverage.txt" | |
- name: Upload coverage file | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage-artifact # go tool cover -html="coverage.txt" | |
path: ./coverage.txt # coverage.txt |