Skip to content

Commit

Permalink
feat: prepare CI latest
Browse files Browse the repository at this point in the history
  • Loading branch information
f-necas committed Jan 30, 2024
1 parent 10a31b0 commit e7d96e9
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: CI

env:
NODE_VERSION: 18.16.1

on:
push:
branches:
Expand All @@ -26,14 +29,27 @@ jobs:
npx nx affected --target=lint --parallel=3
npx nx affected --target=test --parallel=3 --ci --code-coverage
npx nx affected --target=build --parallel=3
npx nx affected --target=docker-build --parallel=3
push-docker:
needs: lint-test-build
name: Build and upload docker image and archive
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'

- name: Install dependencies
run: npm i

- name: Run tests
run: npx nx docker-build datahub

- uses: docker/login-action@v1
name: Login to GitHub Container Registry
with:
Expand Down

0 comments on commit e7d96e9

Please sign in to comment.