fix(ci): fix CI issues

This commit is contained in:
jguer committed 2020-09-08 00:02:28 +02:00
1 parent 5ae510ad6f
commit 8a0a0cf2bc
4 files changed
+43 -8

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
name: Builder image
on:
schedule:
- cron: "0 3 * * 1"
push:
paths:
- "ci.Dockerfile"
- "**/builder-image.yml"
jobs:
build:
name: Push builder image to GitHub Packages
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Push to GitHub Packages
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: jguer/yay-builder
dockerfile: ci.Dockerfile
tags: latest
+5 -7
View File
@@ -15,7 +15,7 @@ jobs:
name: Lint and test yay
runs-on: ubuntu-latest
container:
image: samip537/archlinux:devel
image: jguer/yay-builder:latest
steps:
- name: Checkout
uses: actions/checkout@v2
@@ -25,9 +25,7 @@ jobs:
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run Build and tests
run: |
pacman -Sy --noconfirm go
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.27.0
./bin/golangci-lint run ./...
make test
- name: Lint
run: /app/bin/golangci-lint run ./...
- name: Run Build and Tests
run: make test