Skip to content

Commit

Permalink
chore(ci): init new test pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
heronimus committed Nov 1, 2023
1 parent 254daf3 commit d7b26d3
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Test

on:
pull_request:
push:
branches:
- main
jobs:
e2e:
name: E2E Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Cache Docker images
uses: ScribeMD/[email protected]
with:
key: docker-${{ runner.os }}-${{ hashFiles('internal/e2e/tester/cardinal/Dockerfile') }}
- name: E2E Test Nakama
run: make e2e-nakama
unit-test-coverage:
name: Unit Test - Coverage
runs-on: ubuntu-latest
env:
GO_VERSION: 1.21.0
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Golang
uses: actions/setup-go@v3
with:
go-version: $GO_VERSION
- name: Cache Golang Deps
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
/home/runner/go
key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-golang-
- name: Run Unit Test
run: make unit-test-all

0 comments on commit d7b26d3

Please sign in to comment.