Skip to content

Commit

Permalink
[PLATFORM-1364]: Migrate to GHA (#182)
Browse files Browse the repository at this point in the history
* Add ci with GHA

* Use primait GHA rust version

* Trying to let cargo make work

* Change rust-cargo-make version to pin to commit

* Fix clippy warning on phantomdata default call

* Fix unresolved link to 'EventHandler' in docs

* Add postgres service trying to fix tests

* Fix unresolved link to 'StoreEvent' in docs

* Attempt to let tests work n.1

* Attempt to let tests work n.2

* Attempt to let tests work n.3

* Attempt to let tests work n.4

* Attempt to let tests work n.5

* Attempt to let tests work n.6

* Attempt to let tests work n.7

* Attempt to let tests work n.8

* Attempt to let tests work n.9

* Add cd

* Remove drone.yml

* Change alls-green impl

* Remove comment

* Remove build step

* Refactor makefile and ci

* Change tasks names

* Fix cargo docs

* Trying to fix tests that keep running without an end pt.1

* Trying to fix tests that keep running without an end pt.2

* Trying to fix tests that keep running without an end pt.3

* Trying to fix tests that keep running without an end pt.4

* Trying to fix tests that keep running without an end pt.5

* Change test command

* Rename 'tests' in 'test'

* Trying to standardize makefile and CI

* Add all-targets to clippy check

* Refactor docs script in makefile

* Move release task to makefile

* Lighten ci commands

* Fix unnecessary unit expression

* Fix clippy again

* Check package version in cd

* Remove build script

* Fix wrong error msg in cd

* Remove ntest from deps

* Remove ntest macro
  • Loading branch information
cottinisimone authored Dec 6, 2023
1 parent ed9fd19 commit 2446bc2
Show file tree
Hide file tree
Showing 13 changed files with 168 additions and 431 deletions.
314 changes: 0 additions & 314 deletions .drone.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CD

on:
release:
types: [published]

env:
CARGO_TERM_COLOR: always

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: taiki-e/install-action@cargo-release
- uses: taiki-e/install-action@cargo-make
- name: Get version
run: |
VERSION=$(grep -m1 '^version' Cargo.toml | cut -d'"' -f2)
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Check version
if: ${{ github.event.release.tag_name != env.VERSION }}
run: |
echo "Github ref tag [${{ github.event.release.tag_name }}] is different from Cargo.toml version [${{ env.VERSION }}]"
exit 1
- run: cargo login "$CARGO_AUTH_KEY"
env:
CARGO_AUTH_KEY: ${{ secrets.CARGO_AUTH_KEY }}
- run: cargo make release
Loading

0 comments on commit 2446bc2

Please sign in to comment.