diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml new file mode 100644 index 0000000..6c9885b --- /dev/null +++ b/.github/workflows/build-and-test.yml @@ -0,0 +1,14 @@ +name: "Build and Test" +on: + pull_request: + push: +jobs: + tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: cachix/install-nix-action@v27 + with: + github_access_token: ${{ secrets.GITHUB_TOKEN }} + - run: nix build + - run: nix flake check diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml deleted file mode 100644 index 5291e06..0000000 --- a/.github/workflows/dotnetcore.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Build and Test - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-dotnet@v1 - with: - dotnet-version: '6.0.x' - - name: .net version - run: dotnet --version - - name: Install dependencies - run: dotnet restore - - name: Build - run: dotnet build --configuration Debug --no-restore - - name: Test - run: dotnet test --no-restore --verbosity normal