Skip to content

Commit

Permalink
[Javascript] Set up CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderploegsma committed Nov 2, 2023
1 parent c4585f5 commit d64293d
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/javascript.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: javascript

on:
push:
paths:
- ".github/workflows/javascript.yml"
- "javascript/**"
branches: [main]
pull_request:
paths:
- ".github/workflows/javascript.yml"
- "javascript/**"
branches: [main]

defaults:
run:
working-directory: javascript

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Install dependencies
run: yarn
- name: Run tests
run: yarn workspaces run test
1 change: 1 addition & 0 deletions javascript/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
11 changes: 11 additions & 0 deletions javascript/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "exercism-javascript-workspace",
"version": "0.0.0",
"private": true,
"workspaces": [
"annalyns-infiltration",
"freelancer-rates",
"hello-world",
"lasagna"
]
}
4 changes: 4 additions & 0 deletions javascript/yarn.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1


0 comments on commit d64293d

Please sign in to comment.