Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test merge to GH actions #1

Merged
merged 3 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: VIZ IFC Consumer Tests

on:
push:
branches: [main]
paths:
- "viz_ifc-consumer/**"
pull_request:
branches: [main]
paths:
- "viz_ifc-consumer/**"

jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./viz_ifc-consumer

steps:
- uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "18"

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm test
3 changes: 3 additions & 0 deletions viz_ifc-consumer/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
npm-debug.log
dist
2 changes: 1 addition & 1 deletion viz_ifc-consumer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18
FROM node:18-alpine

WORKDIR /app

Expand Down
5 changes: 5 additions & 0 deletions viz_ifc-consumer/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
preset: "ts-jest",
testEnvironment: "node",
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
};
Loading
Loading