Fix Server test for boards #409
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Check-in tests | ||
| on: | ||
| push: | ||
| branches: | ||
| - 'main' | ||
| - 'releases-**' | ||
| pull_request: | ||
| workflow_dispatch: | ||
| env: | ||
| BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | ||
| EXCLUDE_ENTERPRISE: true | ||
| permissions: | ||
| contents: read | ||
| jobs: | ||
| webapp-test: | ||
| runs-on: ubuntu-22.04 | ||
| services: | ||
| postgres: | ||
| image: postgres:14 | ||
| env: | ||
| POSTGRES_USER: postgres | ||
| POSTGRES_PASSWORD: postgres | ||
| POSTGRES_DB: focalboard_test | ||
| options: >- | ||
| --health-cmd pg_isready | ||
| --health-interval 10s | ||
| --health-timeout 5s | ||
| --health-retries 5 | ||
| ports: | ||
| - 5432:5432 | ||
| env: | ||
| TEST_DATABASE_DRIVERNAME: postgres | ||
| TEST_DATABASE_SOURCE: postgres://postgres:postgres@localhost:5432/focalboard_test?sslmode=disable | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| with: | ||
| path: "focalboard" | ||
| - name: npm ci | ||
| run: | | ||
| cd focalboard/webapp && npm ci | ||
| - name: Set up Go | ||
| uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 | ||
| with: | ||
| go-version-file: focalboard/go.mod | ||
| - name: Setup Node | ||
| uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 | ||
| with: | ||
| node-version-file: focalboard/.nvmrc | ||
| - name: Lint & test webapp | ||
| run: cd focalboard; make webapp-ci | ||
| - name: set up golangci-lint | ||
| run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.64.8 | ||
| - name: Lint & test server | ||
| run: cd focalboard; make server-ci | ||
| dist: | ||
|
Check failure on line 66 in .github/workflows/ci.yml
|
||
| uses: mattermost/actions-workflows/.github/workflows/plugin-dist-pr.yml@main | ||
| secrets: inherit | ||
| with: | ||
| dist-target: "dist-linux" | ||
| s3-prefix: "mattermost-plugin-boards" | ||