diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..37f0efd7c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: CI + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js + uses: actions/setup-node@v1 + with: + node-version: '12.x' + - name: Run npm steps + run: | + npm install + npm run eslint + npm run abaplint + npm run merge + - name: deploy-merged-build + if: github.ref == 'refs/heads/master' && github.repository == 'larshp/abapGit' + env: + GITHUB_API_KEY: ${{ secrets.MY_TOKEN }} + run: ./ci/deploy-merged-build.sh + - name: deploy-release-tag + if: github.ref == 'refs/heads/master' && github.repository == 'larshp/abapGit' + env: + GITHUB_API_KEY: ${{ secrets.GITHUB_TOKEN }} + run: ./ci/deploy-release-tag.sh diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6e9997ec1..000000000 --- a/.travis.yml +++ /dev/null @@ -1,24 +0,0 @@ -language: node_js -node_js: - - "10" -notifications: - email: false -script: - - npm run eslint - - npm run abaplint -deploy: - - provider: script - script: ./ci/deploy-merged-build.sh - skip_cleanup: true - on: - branch: master - tags: false - - provider: script - script: ./ci/deploy-release-tag.sh - skip_cleanup: true - on: - branch: master - tags: false -env: - global: - secure: "JEKitZ+1to7pt4/lLcWJ0mtWuCRFxEBbps9hEFtHrenxBZR0dSekrLkhXBm9qRLJ6b0QLdYV0855/BiZlvOWuecB5kujbYLoCClx7+DWFszLQKgLf9UPbBoqkoLhvAtpGbAx7aMuBrqFnAD4ZBjybjEDJ5SHnxsWfu7AA2YrtPOUZvFZLqdP4muhwfVuYv+1CRZNJMZHtR4lw1R7kVQggaQmD04iMP/NKQuqNyjEC13zUxDLv5tskDAvl3OrPA3Ybx7Z0GM6piA+EkUoXtc3qnpe7e7j0IHBWpLwOjBOju4n1gMdZ13q1UzoLLsJV17jrg8tSoWw/F/Yqlo50qdRAsg6RCX4k5UpIP7mttStb9iT2pZlfwIAWHQF6aN67ic8F/AuPquMHKEgu/qfj1NK+6lfX0OHM6ovtAnNOozkSUikf7JxMeTlZLLOk+ZSTIYbxDsojMra8jeYmLtOLeFRu485fooXPt0n0aAzHDNuq7xQejvWZ0TGgxytc+A5b5y9YTsLSTZrQZmnxPweSgDSfLPY5HXK51nzEYGSP0tP4BlPAxysAsFoeLgr4oiham1ZxKfCNs7g5Cjc6Zbo1Zuq4Iza4HFl57I96QgyjFLgyFTdzfK6HJvUyIb/+fLK2RfCy0QbYboHej2Ki111I5UjkYITd+nyzmYiX9clJqSBeww=" diff --git a/ci/deploy-merged-build.sh b/ci/deploy-merged-build.sh index 37738d16b..f2cddc263 100755 --- a/ci/deploy-merged-build.sh +++ b/ci/deploy-merged-build.sh @@ -11,8 +11,8 @@ cd ../build # Commit git status -git config user.email "builds@travis-ci.com" -git config user.name "Travis CI" +git config user.email "ci@abapgit.org" +git config user.name "CI" git add zabapgit.abap -git commit -m "Travis build $TRAVIS_BUILD_NUMBER" || exit 1 +git commit -m "CI build $TRAVIS_BUILD_NUMBER" || exit 1 git push -q https://$GITHUB_API_KEY@github.com/abapGit/build.git > /dev/null 2>&1