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

Replace CircleCI with Actions #267

Merged
merged 6 commits into from
Apr 15, 2024
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
209 changes: 0 additions & 209 deletions .circleci/config.yml

This file was deleted.

82 changes: 82 additions & 0 deletions .github/workflows/main-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: roadie standard commit build

on:
push:
branches:
- main
pull_request:
types:
- opened
- reopened
- synchronize

jobs:

tests:
runs-on: ubuntu-latest
name: 'Unit Tests'
steps:
- name: 'Checkout Repo'
uses: actions/checkout@v4
- name: 'Setup Go'
uses: actions/setup-go@v4
with:
go-version: ^1.22
- name: 'Setup Node'
uses: actions/setup-node@v4
with:
node-version: 18
- name: 'Build Frontend Artefacts'
run: yarn && NODE_OPTIONS=--openssl-legacy-provider yarn build
- name: 'Mirror Dist'
run: cp -r ./dist ./pkg/server/dist
- name: 'Run Tests'
run: go test -cover -coverprofile=coverage.txt ./...
- name: 'Archive Coverage Results'
uses: actions/upload-artifact@v4
with:
name: code-coverage
path: coverage.txt

code_coverage:
name: 'Code Coverage Report'
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
needs: tests
steps:
- uses: fgrosse/go-coverage-report@v1.0.0
with:
coverage-artifact-name: 'code-coverage'
coverage-file-name: 'coverage.txt'

build_and_artefact:
strategy:
matrix:
os: ['linux', 'darwin', 'windows']
arch: ['amd64']
name: 'Build and Artefact'
runs-on: ubuntu-latest
needs: tests
steps:
- name: 'Checkout Repo'
uses: actions/checkout@v4
- name: 'Setup Go'
uses: actions/setup-go@v4
with:
go-version: ^1.22
- name: 'Setup Node'
uses: actions/setup-node@v4
with:
node-version: 18
- name: 'Build Frontend Artefacts'
run: yarn && NODE_OPTIONS=--openssl-legacy-provider yarn build
- name: 'Mirror Dist'
run: cp -r ./dist ./pkg/server/dist
- name: 'Matrix Binary Compilation'
run: GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} go build -o dist/roadie.${{ matrix.arch }}-${{ matrix.os }} ./cmd/roadie
- name: 'Archive Binary'
uses: actions/upload-artifact@v4
with:
name: binary-${{ matrix.arch }}-${{ matrix.os }}
path: dist/roadie.${{ matrix.arch }}-${{ matrix.os }}

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

on:
push:
tags:
- '*'

jobs:

build:
runs-on: ubuntu-latest
name: 'Build All Artefacts'
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# roadie

[![CircleCI](https://circleci.com/gh/cloudcloud/roadie.svg?style=svg)](https://circleci.com/gh/cloudcloud/roadie)
[![Maintainability](https://api.codeclimate.com/v1/badges/266ba210dc98df1fd086/maintainability)](https://codeclimate.com/github/cloudcloud/roadie/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/266ba210dc98df1fd086/test_coverage)](https://codeclimate.com/github/cloudcloud/roadie/test_coverage)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/cloudcloud/roadie

go 1.18
go 1.22

require (
github.com/aws/aws-sdk-go v1.38.21
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2318,9 +2318,9 @@ caniuse-api@^3.0.0:
lodash.uniq "^4.5.0"

caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001208:
version "1.0.30001211"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001211.tgz#be40d528bb10272eba0037a88adc40054810f8e2"
integrity sha512-v3GXWKofIkN3PkSidLI5d1oqeKNsam9nQkqieoMhP87nxOY0RPDC8X2+jcv8pjV4dRozPLSoMqNii9sDViOlIg==
version "1.0.30001610"
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001610.tgz"
integrity sha512-QFutAY4NgaelojVMjY63o6XlZyORPaLfyMnsl3HgnWdJUcX6K0oaJymHjH8PT5Gk7sTm8rvC/c5COUQKXqmOMA==

case-sensitive-paths-webpack-plugin@^2.3.0:
version "2.4.0"
Expand Down
Loading