coliru

A minimal, flexible, dotfile installer
git clone https://git.ashermorgan.net/coliru/
Log | Files | Refs | README

build-and-test.yml (649B)


      1 name: Cargo Build and Test
      2 
      3 on:
      4   push:
      5   pull_request:
      6 
      7 env:
      8   CARGO_TERM_COLOR: always
      9 
     10 jobs:
     11   build-and-test-linux:
     12     runs-on: ubuntu-latest
     13 
     14     steps:
     15     - uses: actions/checkout@v4
     16 
     17     - name: Build
     18       run: cargo build --verbose
     19 
     20     - name: Start SSH server
     21       run: |
     22         echo 'PUID=1001' > tests/server/.env
     23         docker compose -f tests/server/compose.yml up -d
     24 
     25     - name: Run tests
     26       run: cargo test --verbose
     27 
     28   build-and-test-windows:
     29     runs-on: windows-latest
     30 
     31     steps:
     32     - uses: actions/checkout@v4
     33 
     34     - name: Build
     35       run: cargo build --verbose
     36 
     37     - name: Run tests
     38       run: cargo test --verbose