1
0
mirror of https://github.com/axllent/mailpit.git synced 2025-01-10 00:43:53 +02:00
mailpit/.github/workflows/tests.yml

37 lines
834 B
YAML
Raw Normal View History

2022-08-07 00:57:45 +02:00
name: Tests
2022-07-29 22:43:49 +02:00
on:
pull_request:
branches: [ develop ]
push:
branches: [ develop, 'feature/**' ]
2022-07-29 22:43:49 +02:00
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
2022-07-30 13:52:57 +02:00
- uses: actions/cache@v3
2022-07-30 13:53:55 +02:00
with:
path: |
~/.cache/go-build
~/go
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
2022-10-07 08:48:50 +02:00
- run: go test ./storage ./server -v
2022-07-29 22:43:49 +02:00
- run: go test ./storage -bench=.
2022-07-29 23:04:25 +02:00
# build the assets
- uses: actions/setup-node@v3
with:
2022-10-14 22:35:06 +02:00
node-version: 18
2022-07-29 23:04:25 +02:00
cache: 'npm'
- run: npm install
- run: npm run package