From 1fa7d9105fa6a6917a95fef30806e66a37462a2f Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Fri, 5 Aug 2022 08:35:54 -0400 Subject: [PATCH 1/2] Replace defunct Travis CI integration with GitHub Actions The GitHub Actions setup is equivalent to the Travis CI configuration with two differences: - The GitHub Action setup does not set the `TAG` environment variable, as it didn't seem like `xml2rfc` would consume that at all (unless I'm missing something) - The GitHub Action preserves the spec output (txt and html) as artifacts that can be downloaded after a successful run (to see the changes without having to locally render the specs) Fixes: https://github.com/json-schema-org/json-schema-spec/issues/1262 Signed-off-by: Juan Cruz Viotti --- .github/workflows/ci.yml | 14 ++++++++++++++ .travis.yml | 8 -------- 2 files changed, 14 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..6b03b6bf --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,14 @@ +name: JSON Schema +on: + - push +jobs: + specs: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + - run: pip install --requirement requirements.txt + - run: xml2rfc --version + - run: make all + - uses: actions/upload-artifact@v2 + with: + path: *.(html|txt) diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 00e794b4..00000000 --- a/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: python -install: -- pip install "xml2rfc~=2.20" -before_script: -- TAG=$(git tag -l --points-at HEAD) -script: -- xml2rfc -V -- make all From 7b676bd36efd3face93331cbdaf293a43e7d4f48 Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Mon, 15 Aug 2022 09:03:47 -0400 Subject: [PATCH 2/2] Update .github/workflows/ci.yml Co-authored-by: Ben Hutton --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6b03b6bf..ddfeb25f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,4 +11,6 @@ jobs: - run: make all - uses: actions/upload-artifact@v2 with: - path: *.(html|txt) + path: | + *.(html|txt) + !requirements.txt