Skip to content

Commit

Permalink
CI/CD: Init workflows. (#3)
Browse files Browse the repository at this point in the history
* CI/CD: Init workflows.

* CI/CD: fix runner.

* CI/CD : Update versions.

* Add Code Owner.
  • Loading branch information
SloMR authored Sep 5, 2024
1 parent e4de173 commit 8fda176
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Code owner for the entire repository
* @SloMR
30 changes: 29 additions & 1 deletion .github/workflows/npm.yml
Original file line number Diff line number Diff line change
@@ -1 +1,29 @@
name: Angular CI
name: Angular CI/CD

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22.6.0'

- name: Install dependencies
run: npm ci
working-directory: client

- name: Build the Angular app
run: npm run build --configuration=production
working-directory: client
42 changes: 41 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1 +1,41 @@
name: Rust CI
name: Rust CI/CD

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v4

- name: Install Rust toolchain
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly-2024-08-29
source $HOME/.cargo/env
shell: bash

- name: Cache Cargo registry
uses: actions/cache@v3
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-
- name: Cache Cargo index
uses: actions/cache@v3
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-index-
- name: Build the Rust project
run: cargo build --release --verbose

0 comments on commit 8fda176

Please sign in to comment.