-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Basic workflow to lint, build & test the package. Runs: | ||
# | ||
# - on demand | ||
# - on push | ||
# - on PR (open, edit or re-open) | ||
# - nightly at 01:42 UTC | ||
name: damerau-levenshtein Continuous Integration | ||
on: | ||
workflow_dispatch: | ||
# Per | ||
# <https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request>: | ||
# "if no activity types are specified, the workflow runs when a pull | ||
# request is opened or reopened or when the head branch of the pull | ||
# request is updated." That said, I've had difficulty getting workflows to trigger on PRs. | ||
pull_request: | ||
types: [opened, edited, reopened] # don't say `synchronize`-- that is taken care of by `push` | ||
push: | ||
# schedule: | ||
# - cron: '42 01 * * *' | ||
|
||
jobs: | ||
# All run in `/home/runner/work/ob-coq/ob-coq`. | ||
lint_and_test: | ||
name: Lint & Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the repo | ||
uses: actions/checkout@v4 | ||
- name: Install tooling | ||
shell: bash | ||
run: | | ||
set -x | ||
sudo apt-get install -y autoconf automake coq | ||
autoconf --version | ||
automake --version | ||
coqtop --version | ||
- name: Lint | ||
shell: bash | ||
run: 'admin/run-linters' | ||
- name: Build & Test | ||
shell: bash | ||
run: 'admin/configure-to-distcheck' |