Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Simplifies CI workflow #60

Merged
merged 3 commits into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 0 additions & 45 deletions .github/workflows/docker.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/golangci-lint.yml

This file was deleted.

73 changes: 73 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright 2023 Canonical Ltd.

name: Master workflow

on:
pull_request:
branches:
- master
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
go-version: 1.21

- name: Build
run: go build

docker-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

gruyaume marked this conversation as resolved.
Show resolved Hide resolved
- uses: actions/setup-go@v5
with:
go-version: 1.21

- name: Build and push Docker image
run: make docker-build

lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
go-version: 1.21

- name: golangci-lint
uses: golangci/golangci-lint-action@v3.7.0
with:
version: latest
args: -v --config ./.golangci.yml

license-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: reuse lint
run: make check-reuse

unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
go-version: 1.21

- name: Unit tests
run: go test ./...
48 changes: 0 additions & 48 deletions .github/workflows/pull_request.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/reuse.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/run-udm-unit-test.yml

This file was deleted.

Loading