Skip to content

Commit

Permalink
Adding workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanHope committed Nov 11, 2023
0 parents commit fc5c703
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build, Test and Lint Armaria

on:
pull_request:
types: [opened, synchronize]
branches:
- main

permissions:
pull-requests: read

jobs:
lint:
name: Lint PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Setup Task
uses: arduino/setup-task@v1
with:
version: 3.x
- name: Setup golangci-lint
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.55.1
- name: Build
run: task build
- name: Test
run: task test
- name: Lint
run: task lint
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Release Armaria

on:
push:
tags:
- '*'

permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Task
uses: arduino/setup-task@v1
with:
version: 3.x
- name: Release
run: task release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit fc5c703

Please sign in to comment.