Skip to content

Commit

Permalink
Create node.js.yml for running tests using github actions (#2)
Browse files Browse the repository at this point in the history
* Create node.js.yml for running tests using github actions

* renamed GH Action file

* fixing the GH Action

* changed test command in ci.yml

* fixed the ci (ran locally before pushing)
  • Loading branch information
kurayami07734 authored Oct 20, 2023
1 parent fd230b1 commit 0e8e74b
Show file tree
Hide file tree
Showing 4 changed files with 964 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm i
- run: npm run test
2 changes: 1 addition & 1 deletion demo.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// import { GenericContainer } from "testcontainers";
import { WireMockContainer } from "./util/WireMockContainer.js";
import { WireMockContainer } from "./index.js";
// const container = await new GenericContainer("wiremock/wiremock")
// .withExposedPorts(8080)
// .withCopyFilesToContainer([
Expand Down
Loading

0 comments on commit 0e8e74b

Please sign in to comment.