Skip to content

[yt/microservices/excel] Add CORS configs. #10

[yt/microservices/excel] Add CORS configs.

[yt/microservices/excel] Add CORS configs. #10

Workflow file for this run

name: Go
on:
push:
branches: [ "main" ]
jobs:
start-vm:
name: Start VM
runs-on: trampoline
outputs:
label: ${{ steps.start-yc-runner.outputs.label }}
instance-id: ${{ steps.start-yc-runner.outputs.instance-id }}
steps:
- name: Start YC runner
id: start-yc-runner
uses: yc-actions/yc-github-runner@v1
with:
mode: start
yc-sa-json-credentials: ${{ secrets.YC_SA_JSON_CREDENTIALS }}
github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
folder-id: ${{ vars.YC_FOLDER_ID }}
image-id: ${{ vars.YC_DEFAULT_IMAGE_ID }}
zone-id: ${{ vars.YC_ZONE_ID }}
subnet-id: ${{ vars.YC_SUBNET_ID }}
cores: 4
memory: 8GB
core-fraction: 100
disk-type: network-ssd-nonreplicated
disk-size: 93GB
checkout:
name: Checkout sources
needs: start-vm
runs-on: ${{ needs.start-vm.outputs.label }}
steps:
- name: Checkout
uses: actions/checkout@v3
check:
name: Run checks
needs:
- start-vm
- checkout
runs-on: ${{ needs.start-vm.outputs.label }}
env:
HOME: /root
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.22
- name: Build
shell: bash
run: |
go build -v -mod=readonly ./...
- name: Run tests
shell: bash
run: |
go test -v -mod=readonly ./...
- name: Run tests with race detector
shell: bash
run: |
go test -v -mod=readonly -race ./...
stop-vm:
name: Stop VM
needs:
- start-vm
- check
runs-on: trampoline
if: ${{ always() }}
steps:
- name: Stop YC runner
uses: yc-actions/yc-github-runner@v1
with:
mode: stop
yc-sa-json-credentials: ${{ secrets.YC_SA_JSON_CREDENTIALS }}
github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
label: ${{ needs.start-vm.outputs.label }}
instance-id: ${{ needs.start-vm.outputs.instance-id }}