diff --git a/.github/workflows/d.yml b/.github/workflows/d.yml new file mode 100644 index 0000000..602953b --- /dev/null +++ b/.github/workflows/d.yml @@ -0,0 +1,27 @@ +name: Run sanitycheck + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: dlang-community/setup-dlang@v1 + + - name: 'Run sanitycheck' + run: | + git clone https://github.com/dlang-tour/core ../tour + mkdir -p ../tour/public/content/lang + mv * ../tour/public/content/lang + export PATH=$PATH:$PWD + (cd ../tour && dub --compiler=${DC} -- --sanitycheck .) diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index fe4f14c..0000000 --- a/.travis.yml +++ /dev/null @@ -1,25 +0,0 @@ -dist: trusty -language: d -d: - - dmd - - ldc -branches: - only: - - master -addons: - apt: - packages: - - libevent-dev - -script: - - echo "Check for trailing whitespace" - - grep -nr --include \*.md '\s$' . ; test $? -eq 1 - - echo "Check for tabs" - - grep -nrP --include \*.md '\t' . ; test $? -eq 1 - - git clone https://github.com/dlang-tour/core ../tour - - mkdir -p ../tour/public/content/lang - - mv * ../tour/public/content/lang - - wget https://raw.githubusercontent.com/dlang/tools/master/rdmd.d - - ${DC} rdmd.d - - export PATH=$PATH:$PWD - - (cd ../tour && dub --compiler=${DC} -- --sanitycheck .) diff --git a/README.md b/README.md index da59bf5..69b5691 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ English base language version of the DLang Tour ============================================== -[![Build Status](https://travis-ci.org/dlang-tour/english.svg?branch=master)](https://travis-ci.org/dlang-tour/english) +[![sanitycheck build status](https://github.com/dlang-tour/english/actions/workflows/d.yml/badge.svg)](https://github.com/dlang-tour/english/actions/workflows/d.yml) Found a typo or want to improve the content? Just click on "edit" and send us a pull request.