Skip to content

AWSのアクセスキー削除 #198

AWSのアクセスキー削除

AWSのアクセスキー削除 #198

Workflow file for this run

name: Node CI
on:
push:
branches: [main]
paths:
- bench/**/*
- webapp/node/**/*
- webapp/sql/**/*
- webapp/pdns/**/*
- development/docker-compose-common.yml
- development/docker-compose-node.yml
- development/Makefile
- .github/workflows/node.yml
pull_request:
paths:
- bench/**/*
- webapp/node/**/*
- webapp/sql/**/*
- webapp/pdns/**/*
- development/docker-compose-common.yml
- development/docker-compose-node.yml
- development/Makefile
- .github/workflows/node.yml
workflow_dispatch:
jobs:
test:
strategy:
matrix:
go:
- 1.21.1
name: Build
runs-on: [isucon13-ci-05]
steps:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- uses: actions/setup-node@v4
with:
node-version: 20
- run: corepack enable yarn
# to avoid error: Deleting the contents of '/home/ubuntu/actions-runner/_work/isucon13/isucon13'
# Error: File was unable to be removed Error: EACCES: permission denied, rmdir
# https://github.com/actions/checkout/issues/211
- name: chown workdir
run: sudo chown -R $USER:$USER $GITHUB_WORKSPACE
- uses: actions/checkout@v4
# containers
- name: "setup containers"
working-directory: ./development
run: |
make down/node
make up/node
- name: "[frontend] build"
working-directory: ./frontend
run: make
# bench
- name: "[bench] Get deps"
working-directory: ./bench
env:
TZ: Asia/Tokyo
run: |
go get -v -t -d ./...
- name: "[bench] Test"
working-directory: ./bench
env:
TZ: Asia/Tokyo
run: |
go clean -testcache
go test -p=1 -v ./...
- name: "run bench"
working-directory: ./bench
run: |
make bench
- name: Show webapp logs
if: ${{ always() }}
working-directory: ./development
run: sudo docker compose -f docker-compose-common.yml -f docker-compose-node.yml logs webapp