Skip to content

Commit c603d0d

Browse files
authored
Merge pull request #35 from oslabs-beta/cicd
Cicd
2 parents 7eff29d + 0d5eebc commit c603d0d

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ name: CI
66
on:
77
# Triggers the workflow on push or pull request events but only for the master branch
88
push:
9-
branches: [ master ]
9+
branches: [dev]
1010
pull_request:
11-
branches: [ master ]
11+
branches: [dev]
1212

1313
# Allows you to run this workflow manually from the Actions tab
1414
workflow_dispatch:
@@ -23,11 +23,15 @@ jobs:
2323
# Steps represent a sequence of tasks that will be executed as part of the job
2424
steps:
2525
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
26-
- uses: actions/checkout@v2
26+
- uses: actions/checkout@v3
27+
with:
28+
node-version: 18.13.0
2729

2830
# Runs a single command using the runners shell
29-
- name: Run a one-line script
30-
run: echo Hello, world!
31+
- name: Install dependencies
32+
run: npm install
33+
- name: Run all tests
34+
run: npm run test --bail
3135

3236
# Runs a set of commands using the runners shell
3337
- name: Run a multi-line script

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,9 @@
249249
"js"
250250
],
251251
"modulePathIgnorePatterns": [
252-
"__tests__/playwright"
252+
"__tests__/playwright",
253+
"__tests__/spec.ts",
254+
"__tests__/userAuth.test.ts"
253255
],
254256
"transform": {
255257
"\\.(ts|tsx)$": "ts-jest",

0 commit comments

Comments
 (0)