diff --git a/.github/workflows/build.yml b/.github/workflows/build-server.yml similarity index 57% rename from .github/workflows/build.yml rename to .github/workflows/build-server.yml index a1a08a77..edba518c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build-server.yml @@ -1,4 +1,4 @@ -name: build +name: Build Server on: pull_request: @@ -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 diff --git a/.github/workflows/build-web.yml b/.github/workflows/build-web.yml new file mode 100644 index 00000000..8b40331e --- /dev/null +++ b/.github/workflows/build-web.yml @@ -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 diff --git a/.github/workflows/clippy.yml b/.github/workflows/clippy.yml index 21afc105..0a014fba 100644 --- a/.github/workflows/clippy.yml +++ b/.github/workflows/clippy.yml @@ -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 diff --git a/.github/workflows/fmt.yml b/.github/workflows/fmt.yml index 40bfe430..00a4719e 100644 --- a/.github/workflows/fmt.yml +++ b/.github/workflows/fmt.yml @@ -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 diff --git a/.github/workflows/test-e2e.yml b/.github/workflows/test-e2e.yml index c19e58d6..4bfcd57d 100644 --- a/.github/workflows/test-e2e.yml +++ b/.github/workflows/test-e2e.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ce1e2178..7544fc32 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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