-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (37 loc) · 892 Bytes
/
Copy pathmain.yaml
File metadata and controls
37 lines (37 loc) · 892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Main
on:
push:
branches:
- main
permissions: read-all
jobs:
lint:
name: Lint
runs-on: self-hosted
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Lint files
uses: dagger/dagger-for-github@8.0.0
with:
module: github.com/go-orb/plugins
args: lint --root=. logs
cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }}
version: latest
test:
name: Unit Tests
runs-on: self-hosted
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run unit tests
uses: dagger/dagger-for-github@8.0.0
with:
module: github.com/go-orb/plugins
args: test --root=. logs
cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }}
version: latest