Skip to content

Commit

Permalink
Replace CircleCI with Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
vansante committed Sep 6, 2023
1 parent a79c35e commit 048bb40
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 23 deletions.
23 changes: 0 additions & 23 deletions .circleci/config.yml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: golangci-lint
on:
push:
tags:
- v*
branches:
- master
- main
- v2
pull_request:

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
25 changes: 25 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
on: [push, pull_request]
name: Test
jobs:
test:
strategy:
matrix:
go-version: [1.18.x, 1.19.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}

steps:
- name: Install Linux packages
if: matrix.os == 'ubuntu-latest'
run: sudo apt update && sudo apt install -y --no-install-recommends ffmpeg

- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}

- name: Checkout code
uses: actions/checkout@v2

- name: Test
run: go test -v ./...

0 comments on commit 048bb40

Please sign in to comment.