Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PLATFORM-1364]: Migrate to GHA #182

Merged
merged 44 commits into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
792d12f
Add ci with GHA
cottinisimone Nov 23, 2023
decb983
Use primait GHA rust version
cottinisimone Nov 23, 2023
1430100
Trying to let cargo make work
cottinisimone Nov 23, 2023
37ce7b7
Change rust-cargo-make version to pin to commit
cottinisimone Nov 23, 2023
4a018e8
Fix clippy warning on phantomdata default call
cottinisimone Nov 23, 2023
4abb90e
Fix unresolved link to 'EventHandler' in docs
cottinisimone Nov 23, 2023
c93c3fd
Add postgres service trying to fix tests
cottinisimone Nov 23, 2023
21c9171
Fix unresolved link to 'StoreEvent' in docs
cottinisimone Nov 23, 2023
dbb3e18
Attempt to let tests work n.1
cottinisimone Nov 23, 2023
898fb2a
Attempt to let tests work n.2
cottinisimone Nov 23, 2023
5a2eb23
Attempt to let tests work n.3
cottinisimone Nov 23, 2023
5b7e3ec
Attempt to let tests work n.4
cottinisimone Nov 23, 2023
d7f1484
Attempt to let tests work n.5
cottinisimone Nov 24, 2023
0e6c044
Attempt to let tests work n.6
cottinisimone Nov 24, 2023
580683a
Attempt to let tests work n.7
cottinisimone Nov 24, 2023
d572deb
Attempt to let tests work n.8
cottinisimone Nov 24, 2023
a182f74
Attempt to let tests work n.9
cottinisimone Nov 24, 2023
e1edd1c
Add cd
cottinisimone Nov 24, 2023
05ab073
Remove drone.yml
cottinisimone Nov 24, 2023
e0d027a
Change alls-green impl
cottinisimone Nov 24, 2023
43905d0
Remove comment
cottinisimone Nov 24, 2023
bdcd84b
Remove build step
cottinisimone Nov 27, 2023
2b27e23
Refactor makefile and ci
cottinisimone Nov 28, 2023
8fd31be
Change tasks names
cottinisimone Nov 28, 2023
e19df33
Fix cargo docs
cottinisimone Nov 28, 2023
1f655ac
Trying to fix tests that keep running without an end pt.1
cottinisimone Nov 28, 2023
11c99ab
Trying to fix tests that keep running without an end pt.2
cottinisimone Nov 28, 2023
ca1a2ba
Trying to fix tests that keep running without an end pt.3
cottinisimone Nov 28, 2023
2a6f5d4
Trying to fix tests that keep running without an end pt.4
cottinisimone Nov 28, 2023
67bb932
Trying to fix tests that keep running without an end pt.5
cottinisimone Nov 28, 2023
4928f80
Change test command
cottinisimone Nov 28, 2023
9dae81e
Rename 'tests' in 'test'
cottinisimone Nov 28, 2023
f8d0902
Trying to standardize makefile and CI
cottinisimone Nov 29, 2023
9985205
Add all-targets to clippy check
cottinisimone Nov 29, 2023
953513f
Refactor docs script in makefile
cottinisimone Nov 29, 2023
258353a
Move release task to makefile
cottinisimone Nov 29, 2023
ef739fe
Lighten ci commands
cottinisimone Nov 29, 2023
b7bf9f2
Fix unnecessary unit expression
cottinisimone Nov 29, 2023
d6e0055
Fix clippy again
cottinisimone Nov 29, 2023
47f31f6
Check package version in cd
cottinisimone Nov 29, 2023
9a9c145
Remove build script
cottinisimone Nov 29, 2023
e762de4
Fix wrong error msg in cd
cottinisimone Nov 29, 2023
11ea0ce
Remove ntest from deps
cottinisimone Nov 30, 2023
e5c5c0f
Remove ntest macro
cottinisimone Nov 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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