Skip to content

Commit

Permalink
Convert CI to Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
julienduchesne committed Jul 10, 2024
1 parent 167b75f commit 0ada091
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 62 deletions.
32 changes: 0 additions & 32 deletions .drone/drone.jsonnet

This file was deleted.

24 changes: 0 additions & 24 deletions .drone/drone.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
name: Build

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

jobs:
lint-fmt:
name: Lint and Format
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: 1.18
- name: Install CI dependencies
run: make install-ci-deps
- name: Lint and Format
run: make lint-fmt

tests:
name: Run Tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: 1.18
- name: Install CI dependencies
run: make install-ci-deps
- name: Run Tests
run: make tests
5 changes: 0 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,3 @@ lint-mixins:
tests:
pushd . && cd ./common-lib && make vendor && make tests
pushd . && cd ./mixin-utils/test && make tests

drone:
drone jsonnet --stream --source .drone/drone.jsonnet --target .drone/drone.yml --format yaml
drone lint .drone/drone.yml
drone sign --save grafana/jsonnet-libs .drone/drone.yml || echo "You must set DRONE_SERVER and DRONE_TOKEN"
1 change: 0 additions & 1 deletion haproxy-mixin/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ with pkgs;
bash
coreutils
cue
drone-cli
findutils
git
gnumake
Expand Down

0 comments on commit 0ada091

Please sign in to comment.