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

Refactor GH action workflows #874

Merged
merged 26 commits into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
dfc2e0f
Remove unused build workflow
rygine Jun 27, 2024
f864fc1
Update deploy docs workflow
rygine Jun 27, 2024
cb79333
Add separate workflow for linting FFI bindings
rygine Jun 27, 2024
c5c8e77
Update node bindings lint workflow
rygine Jun 27, 2024
c2e300b
Update workspace lint workflow
rygine Jun 27, 2024
1735171
Update node bindings test workflow
rygine Jun 27, 2024
5d244d1
Add separate test workflow for FFI bindings
rygine Jun 27, 2024
0bac5df
Update workspace test workflow
rygine Jun 27, 2024
887c960
Update node bindings release workflow
rygine Jun 27, 2024
04518a2
Update swift bindings release workflow
rygine Jun 27, 2024
74dda6e
Update kotlin bindings release workflow
rygine Jun 27, 2024
f96df28
Remove unused release workflow
rygine Jun 27, 2024
6db7189
Update validation server deploy workflow
rygine Jun 27, 2024
8cea191
Upgrade lint workflow machines
rygine Jun 27, 2024
55b9086
Update install command for musl-tools
rygine Jun 27, 2024
c6706c0
Update CLI release workflow
rygine Jun 27, 2024
c386516
Add noop workflow
rygine Jun 28, 2024
3395d8f
Include rustfmt.toml for lint steps
rygine Jun 28, 2024
cb3b65c
Update noop path filtering
rygine Jun 28, 2024
6e7259f
Fix workspace format check command
rygine Jun 28, 2024
9e484fc
Fix lint issue in FFI bindings
rygine Jun 28, 2024
dbfb6ea
Add caching to doc deploy workflow
rygine Jun 28, 2024
a8cee6f
Whitespace and comment updates
rygine Jun 28, 2024
1168689
Update workspace test command
rygine Jun 28, 2024
45ab949
Install foundry for workspace tests
rygine Jun 28, 2024
c81b898
Update noop workflow
rygine Jun 28, 2024
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
221 changes: 0 additions & 221 deletions .github/workflows/build.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: GitHub Pages
name: Deploy Docs to GitHub Pages

on:
push:
branches: ["main"]
branches:
- main

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

Expand All @@ -22,26 +24,28 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive

- name: Setup Pages
uses: actions/configure-pages@v2

- name: Install rust
uses: actions-rs/toolchain@v1
- name: Update rust toolchains
run: rustup update

- name: Cache
uses: Swatinem/rust-cache@v2
with:
toolchain: stable
profile: minimal
override: true
workspaces: |
.

- name: Invoke cargo doc
run: ./dev/docs
id: docgen

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
- name: Upload pages artifact
uses: actions/upload-pages-artifact@v3

# Deployment job
deploy:
Expand All @@ -53,4 +57,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v3
uses: actions/deploy-pages@v4
Original file line number Diff line number Diff line change
@@ -1,36 +1,38 @@
name: Publish Validation Service Image
name: Deploy Validation Service Image

on:
push:
branches:
- main

workflow_dispatch:

jobs:
push_to_registry:
name: Push Docker image to GitHub Packages
name: Push Docker Image to GitHub Packages
runs-on: warp-ubuntu-latest-x64-16x
permissions:
contents: read
packages: write
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v4

- name: Log in to the Container registry
uses: docker/login-action@v1
- name: Log in to the container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v5
with:
images: ghcr.io/xmtp/mls-validation-service

- name: Build and push Docker image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
id: push
with:
context: .
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/lint-ffi-bindings.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Lint FFI Bindings

on:
push:
branches:
- main

pull_request:
paths:
- "bindings_ffi/**"
- ".github/workflows/lint-ffi-bindings.yaml"
- "rustfmt.toml"

jobs:
lint:
name: Lint
runs-on: warp-ubuntu-latest-x64-16x
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Update rust toolchains
run: rustup update

- name: Cache
uses: Swatinem/rust-cache@v2
with:
workspaces: |
.
bindings_ffi

- name: Run clippy and fail on warnings
run: cargo clippy --manifest-path bindings_ffi/Cargo.toml --all-features --all-targets --no-deps -- -Dwarnings

- name: Run format check
run: cargo fmt --manifest-path bindings_ffi/Cargo.toml --check
Loading