prometheus-jitsi-meet-exporter/.github/workflows/integration.yaml

65 lines
1.2 KiB
YAML
Raw Normal View History

2020-03-21 20:53:50 +01:00
name: Integration
on:
push:
branches:
- main
pull_request_target:
2020-03-21 20:53:50 +01:00
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
2020-03-21 20:53:50 +01:00
- name: Setup go
uses: actions/setup-go@v3
2020-03-21 20:53:50 +01:00
with:
2022-02-20 12:32:34 +01:00
go-version: '1.17.x'
- name: Cache Go Dependencies
uses: actions/cache@v2
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
2020-03-21 20:53:50 +01:00
- name: Vet
run: go vet
2020-03-21 20:53:50 +01:00
- name: Test
run: go test ./...
2020-03-21 20:53:50 +01:00
build:
name: Build
runs-on: ubuntu-latest
needs:
- test
2020-03-21 20:53:50 +01:00
steps:
- uses: actions/checkout@v3
2020-03-21 20:53:50 +01:00
- name: Setup go
uses: actions/setup-go@v3
2020-03-21 20:53:50 +01:00
with:
2022-02-20 12:32:34 +01:00
go-version: '1.17.x'
- name: Cache Go Dependencies
uses: actions/cache@v2
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
2020-03-21 20:53:50 +01:00
- name: Build
run: go build ./...
2020-03-21 20:53:50 +01:00
- name: Docker
run: docker build .