From 3edd8e413b354f5d2601e5b5a9fc51fce5fd3131 Mon Sep 17 00:00:00 2001 From: deadprogram Date: Mon, 11 Jul 2022 23:01:59 +0200 Subject: [PATCH] build: switching to GHA Signed-off-by: deadprogram --- .circleci/config.yml | 20 -------------------- .github/workflows/build.yml | 25 +++++++++++++++++++++++++ README.md | 2 +- 3 files changed, 26 insertions(+), 21 deletions(-) delete mode 100644 .circleci/config.yml create mode 100644 .github/workflows/build.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 9376d2024..000000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,20 +0,0 @@ -# Golang CircleCI 2.0 configuration file -# -# Check https://circleci.com/docs/2.0/language-go/ for more details -version: 2 -jobs: - build: - docker: - - image: tinygo/tinygo-dev - steps: - - checkout - - run: tinygo version - - run: - name: "Enforce Go Formatted Code" - command: make fmt-check - - run: - name: "Run unit tests" - command: make unit-test - - run: - name: "Run build and smoke tests" - command: make smoke-test diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 000000000..b10e5c9b7 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,25 @@ +name: Build + +on: + pull_request: + push: + branches: + - dev + - release + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + container: tinygo/tinygo-dev + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: TinyGo version check + run: tinygo version + - name: Enforce Go Formatted Code + run: make fmt-check + - name: Run unit tests + run: make unit-test + - name: Run build and smoke tests + run: make smoke-test diff --git a/README.md b/README.md index 24939a93e..d328977ab 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # TinyGo Drivers -[![PkgGoDev](https://pkg.go.dev/badge/tinygo.org/x/drivers)](https://pkg.go.dev/tinygo.org/x/drivers) [![CircleCI](https://circleci.com/gh/tinygo-org/drivers/tree/dev.svg?style=svg)](https://circleci.com/gh/tinygo-org/drivers/tree/dev) +[![PkgGoDev](https://pkg.go.dev/badge/tinygo.org/x/drivers)](https://pkg.go.dev/tinygo.org/x/drivers) [![Build](https://github.com/tinygo-org/drivers/actions/workflows/build.yml/badge.svg?branch=dev)](https://github.com/tinygo-org/drivers/actions/workflows/build.yml) This package provides a collection of hardware drivers for devices such as sensors and displays that can be used together with [TinyGo](https://tinygo.org).