Skip to content

Commit 764979c

Browse files
committed
update workflow
1 parent 136f12f commit 764979c

File tree

7 files changed

+55
-6
lines changed

7 files changed

+55
-6
lines changed

.ci/.golangci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
issues:
2+
max-per-linter: 0
3+
max-same-issues: 0
4+
5+
linters:
6+
disable-all: true
7+
enable:
8+
- gofmt
9+
10+
run:
11+
timeout: 30m

.github/workflows/changelog-lint.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: changelog-lint
4+
5+
# Controls when the workflow will run
6+
on:
7+
pull_request:
8+
paths:
9+
- .changelog/*
10+
- CHANGELOG.md
11+
12+
# Allows you to run this workflow manually from the Actions tab
13+
workflow_dispatch:
14+
15+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
16+
jobs:
17+
# This workflow contains a single job called "build"
18+
changelog-lint:
19+
# The type of runner that the job will run on
20+
runs-on: ubuntu-latest
21+
22+
# Steps represent a sequence of tasks that will be executed as part of the job
23+
steps:
24+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
25+
- uses: actions/checkout@v3
26+
with:
27+
fetch-depth: 0
28+
ref: ${{ github.event.pull_request.head.sha }}
29+
30+
- uses: actions/setup-go@v3
31+
with:
32+
go-version-file: .go-version
33+
34+
- name: install misspell
35+
run: cd .ci/tools && go install github.com/client9/misspell/cmd/misspell
36+
37+
# Runs a set of commands using the runners shell
38+
- name: changelog-lint
39+
run: misspell -error -source text CHANGELOG.md .changelog

.github/workflows/e2e-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ env:
3333
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
3434
jobs:
3535
# This workflow contains a single job called "build"
36-
build:
36+
e2e-tests:
3737
# The type of runner that the job will run on
3838
runs-on: ubuntu-latest
3939

.github/workflows/mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1414
jobs:
1515
# This workflow contains a single job called "build"
16-
fmt:
16+
docs:
1717
# The type of runner that the job will run on
1818
runs-on: ubuntu-latest
1919

.github/workflows/sync-code.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
tags: v*
1111

1212
jobs:
13-
build:
13+
sync:
1414
runs-on: ubuntu-latest
1515

1616
steps:

.github/workflows/tfprovider-lint.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ jobs:
3737
run: |
3838
tfproviderlint \
3939
-c 1 \
40-
-AT001 \
4140
-AT002 \
4241
-AT005 \
4342
-AT006 \

.github/workflows/unit-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1414
jobs:
1515
# This workflow contains a single job called "build"
16-
build:
16+
unit-tests:
1717
# The type of runner that the job will run on
1818
runs-on: ubuntu-latest
1919

@@ -26,5 +26,5 @@ jobs:
2626
ref: ${{ github.event.pull_request.head.sha }}
2727

2828
# Runs a set of commands using the runners shell
29-
- name: MR INFO
29+
- name: unit
3030
run: go test -v ./tencentcloud -test.run 'TestProvider'

0 commit comments

Comments
 (0)