mirror of
https://github.com/axllent/mailpit.git
synced 2025-01-24 03:47:38 +02:00
29 lines
592 B
YAML
29 lines
592 B
YAML
name: Test
|
|
on:
|
|
pull_request:
|
|
branches: [ develop ]
|
|
push:
|
|
branches: [ develop ]
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
go-version: [1.18.x]
|
|
os: [ubuntu-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/setup-go@v3
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
- uses: actions/checkout@v3
|
|
- run: go test ./storage -v
|
|
- run: go test ./storage -bench=.
|
|
|
|
# build the assets
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 16
|
|
cache: 'npm'
|
|
- run: npm install
|
|
- run: npm run package
|