Skip to content

Commit

Permalink
Start a CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sp1ff committed Jul 2, 2024
1 parent 6f3ebc9 commit efa50bb
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
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'

0 comments on commit efa50bb

Please sign in to comment.