Skip to content

Commit

Permalink
feat: web-build ci check
Browse files Browse the repository at this point in the history
  • Loading branch information
EstebanBorai committed Jul 15, 2024
1 parent f8541bf commit a33a73e
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 26 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build
name: Build Server

on:
pull_request:
Expand All @@ -12,12 +12,10 @@ jobs:
runs-on: 'ubuntu-latest'

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- name: Setup Rust Toolchain
uses: dtolnay/rust-toolchain@stable

- name: Execute `cargo build`
run: cargo build --release
26 changes: 26 additions & 0 deletions .github/workflows/build-web.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build Web

on:
pull_request:
push:
branches:
- main

jobs:
build:
name: Builds
runs-on: 'ubuntu-latest'

steps:
- uses: actions/checkout@v4

- name: Setup Rust Toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown

- name: Install Just
uses: extractions/setup-just@v2

- name: Creates a Dotenv file
run: just web-dev
8 changes: 4 additions & 4 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
runs-on: 'ubuntu-latest'

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4

- uses: actions-rs/toolchain@v1
- name: Setup Rust Toolchain
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
components: clippy

- name: Execute `cargo clippy`
run: cargo clippy
8 changes: 4 additions & 4 deletions .github/workflows/fmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
runs-on: 'ubuntu-latest'

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4

- uses: actions-rs/toolchain@v1
- name: Setup Rust Toolchain
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
components: rustfmt

- name: Execute `cargo fmt`
run: cargo fmt
9 changes: 2 additions & 7 deletions .github/workflows/test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,13 @@ jobs:
uses: actions/checkout@v2

- name: Setup Rust Toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
uses: dtolnay/rust-toolchain@stable

- name: Setup Rust Cache
uses: Swatinem/rust-cache@v2

- name: Install Just
uses: extractions/setup-just@v1
with:
just-version: '1.13.0'
uses: extractions/setup-just@v2

- name: Creates a Dotenv file
run: just dotenv
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ jobs:
runs-on: 'ubuntu-latest'

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- name: Setup Rust Toolchain
uses: dtolnay/rust-toolchain@stable

- name: Execute `cargo test`
run: cargo test

0 comments on commit a33a73e

Please sign in to comment.