Skip to content

Commit b06cdc6

Browse files
committed
Add CI on GitHub Actions
1 parent 8b35c9b commit b06cdc6

2 files changed

Lines changed: 44 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: tests
2+
on: [push, pull_request]
3+
jobs:
4+
plugin-tests:
5+
name: Tests
6+
runs-on: ubuntu-latest
7+
container:
8+
image: buildkite/plugin-tester:latest
9+
volumes:
10+
- "${{github.workspace}}:/plugin"
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: tests
14+
run: bats tests/
15+
plugin-lint:
16+
name: Lint
17+
runs-on: ubuntu-latest
18+
container:
19+
image: buildkite/plugin-linter:latest
20+
volumes:
21+
- "${{github.workspace}}:/plugin"
22+
steps:
23+
- uses: actions/checkout@v4
24+
- name: lint
25+
run: lint --id envato/aws-s3-sync
26+
plugin-shellcheck:
27+
name: Shellcheck
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: actions/checkout@v4
31+
- name: Run ShellCheck
32+
uses: ludeeus/action-shellcheck@1.1.0
33+
with:
34+
check_together: 'yes'

compose.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
services:
2+
tests:
3+
image: "buildkite/plugin-tester"
4+
volumes:
5+
- ".:/plugin:ro"
6+
lint:
7+
image: "buildkite/plugin-linter"
8+
command: ["--id", "envato/aws-s3-sync"]
9+
volumes:
10+
- ".:/plugin:ro"

0 commit comments

Comments
 (0)