forked from u-root/webboot
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (62 loc) · 1.9 KB
/
nightly.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
57
58
59
60
61
62
63
64
# Nightly runs integration testing to check for stale distro metadata (hardcoded
# in cmds/cli/ci.json and cmds/webboot/distros.json).
#
# Distros regularly update to new versions, but webboot's distro metadata is
# hardcoded. Although integration testing is triggered on push and pull
# requests, webboot development is not always active. Testing distro metadata
# regularly helps catch out-of-date info sooner.
name: nightly
on:
# Triggers the workflow every day at 23:00
schedule:
- cron: "0 23 * * *"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
integration_testing:
runs-on: ubuntu-latest
# Environment variables
env:
# GOPATH is the current directory.
GOPATH: ${{ github.workspace }}
# WEBBOOT is the where the code is checked out.
WEBBOOT: ${{ github.workspace }}/src/github.com/${{ github.repository }}
# Set the working directory to the correct place in $GOPATH.
defaults:
run:
working-directory: ${{ env.WEBBOOT }}
strategy:
# Run all distros at the same time.
max-parallel: 10
# Continue testing other distros on failure.
fail-fast: false
# List of distros
matrix:
distro:
- TinyCore
- Arch
- CentOS 7
- Debian
- Fedora
- Kali
- Linux Mint
- Manjaro
- Ubuntu
# Steps represent a sequence of tasks that will be executed as part of the
# job
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.18.x
- name: Checkout code
uses: actions/checkout@v2
with:
path: ${{ env.WEBBOOT }}
- name: Checkout dependencies
run: |
sudo apt-get update
./firsttime.sh
- name: Integration testing
run: |
./integration.sh "${{ matrix.distro }}"