Skip to content

Commit

Permalink
Add CI (#1)
Browse files Browse the repository at this point in the history
* Add CI

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Install CLI

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Extend CI error msg

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* TEST: add unindexed

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Dont run CI twice

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Fix CI

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Fix CI

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Fix CI

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Fix CI

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* TEST

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* TEST

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Revert tests

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

---------

Signed-off-by: Oliver Tale-Yazdi <[email protected]>
  • Loading branch information
ggwpez authored Feb 24, 2024
1 parent 74fa3b4 commit 177f073
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/evidence-links.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Check Evidence
on:
push:
branches: [ master ]
pull_request:
workflow_dispatch:

jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Clone
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install collective-cli
run: cargo install --git https://github.com/super-collective/collective-cli --locked -q

- name: Validate files
run: |
collective check evidence
- name: Check Index Links
run: |
collective index evidence
[ -z "$(git status --porcelain)" ] || (echo "Please run 'collective index evidence' and commit the changes." && exit 1)
- name: Check Modified Index Links
run: |
collective index evidence --reindex
[ -z "$(git status --porcelain)" ] || (echo "Please run 'collective index evidence --reindex' and commit the changes." && exit 1)

0 comments on commit 177f073

Please sign in to comment.