name: Tests on: pull_request: branches: [ develop ] push: branches: [ develop, 'feature/**' ] 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 - uses: actions/cache@v3 with: path: | ~/.cache/go-build ~/go key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} restore-keys: | ${{ runner.os }}-go- - run: go test ./storage ./server -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