From 14d04feb95bdaaa356bca32912a86ef863249fad Mon Sep 17 00:00:00 2001 From: Jeremy Woertink Date: Mon, 30 Oct 2023 11:43:21 -0700 Subject: [PATCH] Updating the CI file to match other Lucky projects (#17) * Updating the CI file to match other Lucky projects * don't need travis. Update README for Lucky mentions. Fixing CI shard install error --- .github/workflows/ci.yml | 47 +++++++++++++++++++++++++++++++++++ .github/workflows/crystal.yml | 24 ------------------ .travis.yml | 1 - README.md | 6 ++--- 4 files changed, 50 insertions(+), 28 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .github/workflows/crystal.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..dc6ec8a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,47 @@ +name: Carbon SMTP Adapter CI + +on: + push: + branches: [main] + pull_request: + branches: "*" + +jobs: + check_format: + strategy: + fail-fast: false + runs-on: ubuntu-latest + continue-on-error: false + steps: + - name: Checkout source + uses: actions/checkout@v3 + - name: Install Crystal + uses: crystal-lang/install-crystal@v1 + - name: Install dependencies + run: shards install + - name: Format + run: crystal tool format --check + - name: Lint + run: ./bin/ameba + specs: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, windows-latest] + crystal_version: [latest] + include: + - os: ubuntu-latest + crystal_version: 1.4.0 + runs-on: ${{ matrix.os }} + continue-on-error: false + steps: + - name: Checkout source + uses: actions/checkout@v3 + - name: Install Crystal + uses: crystal-lang/install-crystal@v1 + with: + crystal: ${{ matrix.crystal_version }} + - name: Install dependencies + run: shards install --skip-postinstall --skip-executables + - name: Run tests + run: crystal spec diff --git a/.github/workflows/crystal.yml b/.github/workflows/crystal.yml deleted file mode 100644 index 7d3b060..0000000 --- a/.github/workflows/crystal.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Crystal CI - -on: - push: - branches: - - master - pull_request: - branches: - - master - -jobs: - build: - - runs-on: ubuntu-latest - - container: - image: crystallang/crystal - - steps: - - uses: actions/checkout@v1 - - name: Install dependencies - run: shards install - - name: Run tests - run: crystal spec diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ffc7b6a..0000000 --- a/.travis.yml +++ /dev/null @@ -1 +0,0 @@ -language: crystal diff --git a/README.md b/README.md index 0aae087..d0c96c0 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Add this to your application's `shard.yml`: ```yaml dependencies: carbon_smtp_adapter: - github: your-github-user/carbon_smtp_adapter + github: luckyframework/carbon_smtp_adapter ``` ## Usage @@ -45,7 +45,7 @@ end ## Contributing -1. Fork it () +1. Fork it () 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) @@ -53,7 +53,7 @@ end ## Contributors -- [oneiros](https://github.com/oneiros) David Roetzel - creator, maintainer +- [oneiros](https://github.com/oneiros) David Roetzel - creator With many thanks to: