-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (51 loc) · 1.52 KB
/
run-ebuild-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Ebuild Tests
on:
push:
branches:
- '**'
tags-ignore:
- '*.*'
paths-ignore:
- 'README.md'
- 'LICENSE'
- '.github/**'
jobs:
tests:
runs-on: ubuntu-latest
steps:
# Check out the repository
- uses: actions/checkout@master
# Prepare the environment
- name: Prepare
id: prepare
run: |
echo "::set-output name=datetime::$(date +"%Y%m%d%H%M")"
echo "::set-output name=workspace::${GITHUB_WORKSPACE}"
mkdir -p "${GITHUB_WORKSPACE}/distfiles" "${GITHUB_WORKSPACE}/binpkgs"
# Cache distfiles and binary packages
- name: Cache distfiles
id: cache-distfiles
uses: gerbal/[email protected]
with:
path: ${{ steps.prepare.outputs.workspace }}/distfiles
key: distfiles-${{ steps.prepare.outputs.datetime }}
restore-keys: |
distfiles-${{ steps.prepare.outputs.datetime }}
distfiles
- name: Cache binpkgs
id: cache-binpkgs
uses: gerbal/[email protected]
with:
path: ${{ steps.prepare.outputs.workspace }}/binpkgs
key: binpkgs-${{ steps.prepare.outputs.datetime }}
restore-keys: |
binpkgs-${{ steps.prepare.outputs.datetime }}
binpkgs
# Run the ebuild tests
- uses: hacking-gentoo/action-ebuild-test@next
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
auth_token: ${{ secrets.PR_TOKEN }}
deploy_key: ${{ secrets.DEPLOY_KEY }}
overlay_repo: MADhacking/overlay