From 3bfff599407b09985f8930f3d6dca45f2ee58b20 Mon Sep 17 00:00:00 2001 From: Mechiel Lukkien Date: Mon, 1 Jan 2024 14:04:16 +0100 Subject: [PATCH] fix build with github action must have typescript installed before building --- .github/workflows/build-test.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 9cdf1fa..01e1d6c 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -12,6 +12,14 @@ jobs: steps: - uses: actions/checkout@v3 + # Trigger rebuilding frontends, should be the same as committed. + - uses: actions/setup-node@v3 + with: + node-version: 16 + cache: 'npm' + - run: npm ci + - run: 'touch */*.ts' + - uses: actions/setup-go@v4 with: go-version: ${{ matrix.go-version }} @@ -24,14 +32,6 @@ jobs: with: path: cover.html - # Rebuild webmail frontend code, should be the same as committed. - - uses: actions/setup-node@v3 - with: - node-version: 16 - cache: 'npm' - - run: npm ci - - run: 'touch webmail/*.ts && make frontend' - # Format code, we check below if nothing changed. - run: 'make fmt'