Skip to content

Commit 0a9b51a

Browse files
authored
Merge pull request #5 from rspamd/gha
Migrate to Github Actions
2 parents 03ab850 + 1239bd4 commit 0a9b51a

File tree

2 files changed

+27
-22
lines changed

2 files changed

+27
-22
lines changed

.drone.yml

-22
This file was deleted.

.github/workflows/ci.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: ci
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
container:
13+
image: golang
14+
steps:
15+
- name: Check out source code
16+
uses: actions/checkout@v4
17+
18+
- name: Run go test
19+
run: go test -cover ./...
20+
21+
- name: Install staticcheck
22+
run: go install honnef.co/go/tools/cmd/staticcheck@latest
23+
24+
- name: Run staticcheck
25+
run: |
26+
chown -R root:root .
27+
staticcheck ./...

0 commit comments

Comments
 (0)