Skip to content

Commit

Permalink
Migrate aufs subproject to GitHub Actions CI
Browse files Browse the repository at this point in the history
Signed-off-by: Phil Estes <estesp@amazon.com>
  • Loading branch information
estesp committed Mar 12, 2021
1 parent 8999254 commit 2e3cd2d
Showing 1 changed file with 85 additions and 0 deletions.
85 changes: 85 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:

checks:
name: Project Checks
runs-on: ubuntu-18.04
timeout-minutes: 5

steps:
- uses: actions/setup-go@v2
with:
go-version: 1.16.2

- name: Set env
shell: bash
run: |
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
- uses: actions/checkout@v2
with:
path: src/github.com/containerd/aufs
fetch-depth: 25

- uses: containerd/project-checks@v1
with:
working-directory: src/github.com/containerd/aufs

linters:
name: Linters
runs-on: ${{ matrix.os }}
timeout-minutes: 10

strategy:
matrix:
go-version: [1.16.2]
os: [ubuntu-18.04]

steps:
- uses: actions/checkout@v2
with:
path: src/github.com/containerd/aufs

- name: Set env
shell: bash
run: |
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
- uses: golangci/golangci-lint-action@v2
with:
version: v1.29
working-directory: src/github.com/containerd/aufs

tests:
name: Tests
runs-on: ubuntu-18.04
timeout-minutes: 5

steps:
- uses: actions/checkout@v2
with:
path: src/github.com/containerd/aufs

- uses: actions/setup-go@v2
with:
go-version: 1.16.2

- name: Set env
shell: bash
run: |
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
- run: |
go test -v -race -covermode=atomic -coverprofile=coverage.txt ./...
bash <(curl -s https://codecov.io/bash)
working-directory: src/github.com/containerd/aufs

0 comments on commit 2e3cd2d

Please sign in to comment.