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 48dfa75..0000000 --- a/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -sudo: required -language: d -d: - - dmd - - ldc -branches: - only: - - master -before_install: - - sudo apt-get -qq update - - sudo apt-get install -y libevent-dev -script: - - 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 091379e..b1dc959 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ Versão em português da DLang Tour ================================= -[![Build Status](https://travis-ci.org/dlang-tour/portuguese.svg?branch=master)](https://travis-ci.org/dlang-tour/portuguese) +[![sanitycheck build status](https://github.com/dlang-tour/portuguese/actions/workflows/d.yml/badge.svg)](https://github.com/dlang-tour/portuguese/actions/workflows/d.yml) Para report algum erro, dar feedback ou apenas contactar a equipa basta criar um [Issue](https://github.com/dlang-tour/portuguese/issues) e para contribuir