From 73ab896b6ca4e8bfd9aa446a9e3f579f6e5b9431 Mon Sep 17 00:00:00 2001 From: Daniel Bast <2790401+dbast@users.noreply.github.com> Date: Wed, 31 Jul 2024 15:51:15 +0200 Subject: [PATCH] Switch to github actions --- .circleci/config.yml | 27 --------------------------- .drone.yml | 13 ------------- .github/workflows/ci.yml | 20 ++++++++++++++++++++ .travis.yml | 35 ----------------------------------- README.md | 6 ------ 5 files changed, 20 insertions(+), 81 deletions(-) delete mode 100644 .circleci/config.yml delete mode 100644 .drone.yml create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 8141cea..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,27 +0,0 @@ -# -*- mode: yaml -*- - -version: 2 -jobs: - build: - docker: - - image: openjdk:8 - steps: - - run: - name: Get shellcheck - command: | - apt-get update - apt-get install -y shellcheck - apt-get clean && apt-get autoclean - - checkout - - restore_cache: - # Read about caching dependencies: https://circleci.com/docs/2.0/caching/ - key: sbt-cache - - run: - name: Build and test - command: ./ci.sh - - save_cache: - key: sbt-cache - paths: - - "~/.cache/coursier/" - - "~/.ivy2/cache" - - "~/.sbt" diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index a99c9bd..0000000 --- a/.drone.yml +++ /dev/null @@ -1,13 +0,0 @@ ---- -kind: pipeline -name: linux_aarch64_ - -platform: - os: linux - arch: arm64 - -steps: -- name: Build and test - image: arm64v8/openjdk:8-jdk - commands: - - ./ci.sh diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..38ec778 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,20 @@ +name: CI +on: + pull_request: + push: + branches: + - main +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Java + uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 8 + cache: sbt + - name: Build and Test + run: ./ci.sh diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 0532861..0000000 --- a/.travis.yml +++ /dev/null @@ -1,35 +0,0 @@ -language: scala - -scala: - - 2.12.11 - -dist: xenial - -addons: - apt: - packages: - - shellcheck - -jdk: - - openjdk8 - -cache: - directories: - - $HOME/.cache/coursier/ - - $HOME/.ivy2/cache - - $HOME/.sbt - -script: - - find . -name "*.sh" -print0 | xargs -n 1 -0 shellcheck - - ./ci.sh - -before_cache: - # Cleanup the cached directories to avoid unnecessary cache updates - - du -h -s $HOME/.ivy2/ $HOME/.sbt/ $HOME/.cache/coursier/ - - find $HOME/.sbt -name "*.lock" -type f -delete - - rm -fv $HOME/.ivy2/.sbt.ivy.lock - - find $HOME/.ivy2/cache -name "ivydata-*.properties" -type f -delete - - find $HOME/.cache/coursier -name "*.lock" -type f -delete - -after_success: - - bash <(curl -s https://codecov.io/bash) diff --git a/README.md b/README.md index 9d826e3..84fe64c 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,6 @@ Spark Scala Template ==================== -[![Build Status](https://travis-ci.org/dbast/spark-scala-template.svg?branch=master)](https://travis-ci.org/dbast/spark-scala-template) -[![CircleCI](https://circleci.com/gh/dbast/spark-scala-template.svg?style=svg)](https://circleci.com/gh/dbast/spark-scala-template) -[![Build Status](https://cloud.drone.io/api/badges/dbast/spark-scala-template/status.svg)](https://cloud.drone.io/dbast/spark-scala-template) -[![codecov](https://codecov.io/gh/dbast/spark-scala-template/branch/master/graph/badge.svg)](https://codecov.io/gh/dbast/spark-scala-template) -[![loc](https://tokei.rs/b1/github/dbast/spark-scala-template)](https://github.com/dbast/spark-scala-template) - Assortment of default settings, best practices, and general goodies for Scala projects. Layers