From 17c2bfaf955a572f91f717686d15742ee439c2b4 Mon Sep 17 00:00:00 2001 From: Harunobu Ishii Date: Fri, 28 Jul 2023 11:34:28 -0400 Subject: [PATCH] github action --- .github/workflows/server.yml | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/server.yml diff --git a/.github/workflows/server.yml b/.github/workflows/server.yml new file mode 100644 index 0000000..c44ad3b --- /dev/null +++ b/.github/workflows/server.yml @@ -0,0 +1,39 @@ +name: server +on: + workflow_dispatch: + push: + paths: + - 'packages/server/**' + branches: + - main + tags: + - 'v:*.*.*' + pull-request: + paths: + - 'packages/server/**' + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + defaults: + run: + working-directory: packages/server + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 20 + - uses: docker/setup-qemu-action@v2 + - uses: docker/setup-buildx-action@v2 + + - name: Install dependencies + run: npm ci + - name: Check Formatting + run: npm run prettier + - name: Check Linting + run: npm run lint + - name: Build + run: npm run build + \ No newline at end of file