From 77be6fa12d8e0ef4c8d0da35eacc22f63b1b8067 Mon Sep 17 00:00:00 2001 From: Luke Curley Date: Mon, 22 May 2023 20:12:14 -0700 Subject: [PATCH] Add a GH workflow. --- .github/workflows/server.yml | 4 ++-- .github/workflows/web.yml | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/web.yml diff --git a/.github/workflows/server.yml b/.github/workflows/server.yml index 701d2c8..bc29d62 100644 --- a/.github/workflows/server.yml +++ b/.github/workflows/server.yml @@ -1,4 +1,4 @@ -name: Rust +name: Server on: push: @@ -18,6 +18,6 @@ jobs: - name: Build working-directory: server run: cargo build --verbose - - name: Run tests + - name: Test working-directory: server run: cargo test --verbose diff --git a/.github/workflows/web.yml b/.github/workflows/web.yml new file mode 100644 index 0000000..c91c265 --- /dev/null +++ b/.github/workflows/web.yml @@ -0,0 +1,23 @@ +name: Web + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Install + working-directory: web + run: yarn install + - name: Build + working-directory: web + run: yarn build + - name: Lint + working-directory: web + run: yarn lint