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 Aug 20, 2021
1 parent 8a24d22 commit e342d1a
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 33 deletions.
33 changes: 0 additions & 33 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.15.x, 1.16.x, 1.17.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 e342d1a

Please sign in to comment.