Skip to content

Commit 34b27f1

Browse files
committed
add action
1 parent 6d26f35 commit 34b27f1

File tree

3 files changed

+56
-2
lines changed

3 files changed

+56
-2
lines changed

.github/workflows/lint.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Auto CI
2+
on: [push, pull_request]
3+
jobs:
4+
build:
5+
name: Auto triggered CI job
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Set up Go 1.18
9+
uses: actions/setup-go@v3
10+
with:
11+
go-version: 1.18
12+
id: go
13+
- name: Check out code into the Go module directory
14+
uses: actions/checkout@v2
15+
- name: golangci-lint
16+
uses: golangci/golangci-lint-action@v3
17+
with:
18+
version: latest
19+
- name: Run unit tests
20+
run: go test ./...

.github/workflows/release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: goreleaser
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
goreleaser:
10+
runs-on: ubuntu-latest
11+
steps:
12+
-
13+
name: Checkout
14+
uses: actions/checkout@v3
15+
with:
16+
fetch-depth: 0
17+
-
18+
name: Set up Go
19+
uses: actions/setup-go@v3
20+
with:
21+
go-version: 1.18
22+
-
23+
name: Run GoReleaser
24+
uses: goreleaser/goreleaser-action@v3
25+
with:
26+
# either 'goreleaser' (default) or 'goreleaser-pro'
27+
distribution: goreleaser
28+
version: latest
29+
args: release --rm-dist
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
33+
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# chromedp-headless-shell-suport-chinese
22

3-
using docker to deploy chromedp/headless-shell,and add suport for chinese(install fonts,using mirror etc.)
4-
when all dependencies installed,you can run the following command to try generating pdf using our pre-build app
3+
using docker to deploy chromedp/headless-shell,and add suport for chinese(install
4+
fonts,using mirror etc.)when all dependencies installed,you can run the following command
5+
to try generating pdf using our pre-build app.
56

67
```bash
78
when using linux

0 commit comments

Comments
 (0)