deploy: Use systemd #94
Workflow file for this run
This file contains 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: Test | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
test: | |
name: Test All | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.23.x | |
- name: Setup Deno | |
uses: denoland/setup-deno@main | |
with: | |
deno-version: v1.x | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
run_install: false | |
- name: Get pnpm store directory | |
shell: bash | |
run: | | |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | |
- name: Restore pnpm store | |
uses: actions/cache@v4 | |
with: | |
path: ${{ env.STORE_PATH }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('test/**') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- name: Run `go test` | |
run: go test ./server ./server/storage -v | |
env: | |
GO_TEST_S3_ENDPOINT: ${{ secrets.GO_TEST_S3_ENDPOINT }} | |
GO_TEST_S3_REGION: ${{ secrets.GO_TEST_S3_REGION }} | |
GO_TEST_S3_ACCESS_KEY_ID: ${{ secrets.GO_TEST_S3_ACCESS_KEY_ID }} | |
GO_TEST_S3_SECRET_ACCESS_KEY: ${{ secrets.GO_TEST_S3_SECRET_ACCESS_KEY }} | |
- name: Run `test/bootstrap.ts` | |
run: test/bootstrap.ts |