Skip to content

Commit

Permalink
Add weekly CI job that uses OVS master.
Browse files Browse the repository at this point in the history
  • Loading branch information
putnopvut committed Feb 9, 2021
1 parent 9ea1f09 commit c5bd2ef
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion .github/workflows/test.yml
@@ -1,6 +1,11 @@
name: Build and Test

on: [push, pull_request]
on:
push:
pull_request:
schedule:
# Run Sunday at midnight
- cron: '0 0 * * 0'

jobs:
build-linux:
Expand Down Expand Up @@ -49,10 +54,26 @@ jobs:

steps:
- name: checkout
if: github.event_name == 'push' || github.event_name == 'pull_request'
uses: actions/checkout@v2
with:
submodules: recursive

# For weekly runs, don't update submodules
- name: checkout without submodule
if: github.event_name == 'schedule'
uses: actions/checkout@v2

# Weekly runs test using OVS master instead of the
# submodule.
- name: checkout OVS master
if: github.event_name == 'schedule'
uses: actions/checkout@v2
with:
repository: 'openvswitch/ovs'
path: 'ovs'
ref: 'master'

- name: update APT cache
run: sudo apt update

Expand Down Expand Up @@ -105,9 +126,23 @@ jobs:

steps:
- name: checkout
if: github.event_name == 'push' || github.event_name == 'pull_request'
uses: actions/checkout@v2
with:
submodules: recursive
# For weekly runs, don't update submodules
- name: checkout without submodule
if: github.event_name == 'schedule'
uses: actions/checkout@v2
# Weekly runs test using OVS master instead of the
# submodule.
- name: checkout OVS master
if: github.event_name == 'schedule'
uses: actions/checkout@v2
with:
repository: 'openvswitch/ovs'
path: 'ovs'
ref: 'master'
- name: install dependencies
run: brew install automake libtool
- name: prepare
Expand Down

0 comments on commit c5bd2ef

Please sign in to comment.