Skip to content

chore(all): update all #287

chore(all): update all

chore(all): update all #287

Workflow file for this run

name: ci
on:
push:
pull_request:
jobs:
builds:
timeout-minutes: 20
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ 1.23.2 ]
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5
with:
go-version: ${{ matrix.go-version }}
cache: true
- name: Build
run: make build
tests:
strategy:
matrix:
name: [unit]
go-version: [ 1.23.2 ]
runs-on: ubuntu-latest
name: test (${{ matrix.name }})
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5
with:
go-version: ${{ matrix.go-version }}
cache: true
- name: Run ${{ matrix.name }} tests
run: make test
integration:
needs: [builds, tests]
timeout-minutes: 20
runs-on: ubuntu-latest
strategy:
matrix:
name: [integration]
go-version: [ 1.23.2 ]
node-version: [ 20.6.0 ]
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5
with:
go-version: ${{ matrix.go-version }}
- name: Set up Node.js
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/
- name: Install Newman
run: |
npm install --location=global newman
- name: Build
run: make build
- name: Run
run: go run main.go -env-file .env &
- name: Wait for REST API
run: sleep 6s
shell: bash
- name: Run Postman/Newman end-to-end tests
run: make e2e