feat: add minecraft server #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| nix: | |
| name: Nix Checks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Nix | |
| uses: cachix/install-nix-action@v27 | |
| - name: Enable flakes | |
| run: | | |
| mkdir -p ~/.config/nix | |
| echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf | |
| - name: Nix flake check | |
| run: nix flake check | |
| # TODO: build hosts | |
| terraform: | |
| name: Terraform Checks | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: infra | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Tofu | |
| uses: opentofu/setup-opentofu@v1 | |
| - name: Tofu fmt | |
| run: tofu fmt -check -recursive | |
| - name: Tofu init (no backend) | |
| run: tofu init -backend=false -input=false | |
| - name: Tofu validate | |
| run: tofu validate |