Skip to content

Commit

Permalink
Upgrade test job
Browse files Browse the repository at this point in the history
  • Loading branch information
unkhz committed Aug 4, 2024
1 parent d704bad commit e4e7d3a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,40 +4,39 @@ on:
branches: ['master']

jobs:
test:
test-ts:
if: ${{ ! endsWith(github.event.head_commit.message, '[skip ci]') }}
runs-on: ubuntu-latest

strategy:
matrix:
package:
- archive
- base-node
- common-archive-client
- common-data
- common-postgres
- configurator
- gatherer-http
- gatherer-stdin
- infra-postgres
- infra-redis
- listener
- publisher
node-version: [20]

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
- uses: arduino/setup-task@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm install
- run: npx nx run-many --target=lint,test --projects=${{ matrix.package }} --output-style=stream
version: 2.x
- uses: oven-sh/setup-bun@v1
with:
bun-version: 1.1.20
- run: bun install --frozen-lockfile
- run: task ${{ matrix.package }}:lint
- run: task ${{ matrix.package }}:test

build-base-images:
if: ${{ ! endsWith(github.event.head_commit.message, '[skip ci]') }}
needs: test
needs: test-ts
permissions:
contents: write
packages: write
Expand Down
8 changes: 4 additions & 4 deletions packages/publisher/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ tasks:

lint:
desc: Run linter (Prettier check)
cmds:
- bun x bun prettier-check
deps:
- prettier-check

test:
desc: Run all tests
cmds:
- bun test-unit
deps:
- test-unit

build:
desc: Build the project
Expand Down

0 comments on commit e4e7d3a

Please sign in to comment.