Skip to content

Commit

Permalink
feat: build job
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesreprise committed Sep 8, 2023
1 parent c47a3b1 commit f0a7d0b
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: "Build."
on:
pull_request:
push:
jobs:
build-game-server:
name: Build Game Server
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=channel:nixos-unstable
- run: |
nix develop
cd game_server
lein uberjar
java -jar target/game_server-*standalone*&
sleep 5
curl -f http://localhost:3000
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Test"
name: "Test."
on:
pull_request:
push:
Expand Down
5 changes: 4 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
{
devShells.default = pkgs.mkShell {
name = "MFC Shell";
buildInputs = with pkgs; [ clojure leiningen ];
buildInputs = with pkgs; [
clojure leiningen
curl openjdk
];
};
}
);
Expand Down

0 comments on commit f0a7d0b

Please sign in to comment.