diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..67c0155 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,2 @@ +# Code owner for the entire repository +* @SloMR diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index cc9a488..69847e7 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -1 +1,29 @@ -name: Angular CI \ No newline at end of file +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 diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index aa73974..8b5a379 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1 +1,41 @@ -name: Rust CI \ No newline at end of file +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