Skip to content

Commit

Permalink
Create pr.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
181192 authored Jun 21, 2021
1 parent ddac34e commit fc961a7
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Pull Request

on: [pull_request]

jobs:
build:
name: Build
runs-on: ubuntu-latest
env:
DOCKER_CLI_EXPERIMENTAL: "enabled"
steps:
- name: Check out
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Docker Login
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GH_PAT }}

- name: Set up Go 1.15
uses: actions/setup-go@v1
with:
go-version: 1.15
id: go

- uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Get dependencies
run: make install

- name: Test
env:
CI: true
run: make test

0 comments on commit fc961a7

Please sign in to comment.