Skip to content

Commit

Permalink
Merge branch 'main' into Shawn-lesson10
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonydmays authored Oct 23, 2024
2 parents 2163ca5 + 6206b3a commit 987d99f
Show file tree
Hide file tree
Showing 82 changed files with 15,562 additions and 352 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/check_lesson_11_java_pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Check Lesson 11 Pull Request

on:
pull_request:
branches: [ "main" ]
paths:
- "lesson_11/arrays_java/**"

jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: read

steps:
- uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'

- name: Build Lesson 11 with Java
working-directory: ./lesson_11/arrays_java
run: ./gradlew check
28 changes: 28 additions & 0 deletions .github/workflows/check_lesson_11_ts_pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Check Lesson 11 Pull Request

on:
pull_request:
branches: [ "main" ]
paths:
- "lesson_11/arrays_ts/**"

jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: read

steps:
- uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'

- name: Build Lesson 11 with Node.js
working-directory: ./lesson_11/arrays_ts
run: |
npm ci
npm run check
27 changes: 27 additions & 0 deletions .github/workflows/check_lesson_12_java_pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Check Lesson 12 Pull Request

on:
pull_request:
branches: [ "main" ]
paths:
- "lesson_12/structs_java/**"

jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: read

steps:
- uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'

- name: Build Lesson 12 with Java
working-directory: ./lesson_12/structs_java
run: ./gradlew check
28 changes: 28 additions & 0 deletions .github/workflows/check_lesson_12_ts_pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Check Lesson 12 Pull Request

on:
pull_request:
branches: [ "main" ]
paths:
- "lesson_12/structs_ts/**"

jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: read

steps:
- uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'

- name: Build Lesson 12 with Node.js
working-directory: ./lesson_12/structs_ts
run: |
npm ci
npm run check
22 changes: 22 additions & 0 deletions .github/workflows/check_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
- "lesson_07/conditionals/**"
- "lesson_09/types/**"
- "lesson_10/libraries/**"
- "lesson_11/arrays_java/**"
- "lesson_11/arrays_ts/**"
- "lesson_12/structs_java/**"
- "lesson_12/structs_ts/**"

jobs:
build:
Expand Down Expand Up @@ -82,4 +86,22 @@ jobs:
npm ci
npm run compile
- name: Build Lesson 11 with Java
working-directory: ./lesson_11/arrays_java
run: ./gradlew assemble

- name: Build Lesson 11 with Node.js
working-directory: ./lesson_11/arrays_ts
run: |
npm ci
npm run compile
- name: Build Lesson 12 with Java
working-directory: ./lesson_12/structs_java
run: ./gradlew assemble

- name: Build Lesson 12 with Node.js
working-directory: ./lesson_12/structs_ts
run: |
npm ci
npm run compile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package com.codedifferently.lesson9.dataprovider;

import java.util.Map;
import org.springframework.stereotype.Service;

@Service
public class DavidSmithProvider extends DataProvider {
public String getProviderName() {
return "davidsmith";
}

public Map<String, Class> getColumnTypeByName() {
return Map.of(
"column1", Float.class,
"column2", Long.class,
"column3", Short.class,
"column4", Double.class,
"column5", Boolean.class,
"column6", String.class,
"column7", Integer.class);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package com.codedifferently.lesson9.dataprovider;

import java.util.Map;
import org.springframework.stereotype.Service;

@Service
public class NileJacksonProvider extends DataProvider {

@Override
public String getProviderName() {

return "nilejack";
}

@SuppressWarnings("rawtypes")
@Override
public Map<String, Class> getColumnTypeByName() {

return Map.of(
"column1", Boolean.class,
"column2", Double.class,
"column3", Integer.class,
"column4", Long.class,
"column5", Short.class,
"column6", Float.class,
"column7", String.class);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package main.java.com.codedifferently.lesson9.dataprovider;

import com.codedifferently.lesson9.dataprovider.DataProvider;
import java.util.Map;
import org.springframework.stereotype.Service;

@Service
public class ShawnDunsmoreProvider extends DataProvider {
public String getProviderName() {
return "shawmdunsmore";
}

public Map<String, Class> getColumnTypeByName() {
return Map.of(
"column1", Float.class,
"column2", Integer.class,
"column3", Float.class,
"column4", Integer.class,
"column5", String.class,
"column6", Integer.class,
"column7", Boolean.class);
}
}
92 changes: 92 additions & 0 deletions lesson_09/types/types_app/src/main/resources/data/davidsmith.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
[
{
"column1": "2.4856768E38",
"column2": "6348194688465711104",
"column3": "7857",
"column4": "9.45255774450901E307",
"column5": "false",
"column6": "d7mgwz1ter3v",
"column7": "1441278966"
},
{
"column1": "4.0458309E37",
"column2": "475565836519605120",
"column3": "32745",
"column4": "1.2832704698365005E308",
"column5": "false",
"column6": "znmecj6v",
"column7": "113077411"
},
{
"column1": "6.88325E36",
"column2": "1605489098004667392",
"column3": "3736",
"column4": "5.805517690396217E307",
"column5": "false",
"column6": "lm6cweq0h",
"column7": "262984225"
},
{
"column1": "5.6297574E36",
"column2": "1042305323669988608",
"column3": "9421",
"column4": "4.4593927475096523E307",
"column5": "true",
"column6": "2rxwqco47",
"column7": "1283217146"
},
{
"column1": "1.3651107E38",
"column2": "2693239424534015488",
"column3": "22023",
"column4": "1.4079937081264981E308",
"column5": "false",
"column6": "pwu96a7n",
"column7": "771709699"
},
{
"column1": "1.8253724E38",
"column2": "4001908518756238848",
"column3": "25719",
"column4": "3.8526406262057017E307",
"column5": "false",
"column6": "gc6yufq1a9o",
"column7": "1098995223"
},
{
"column1": "4.3599036E35",
"column2": "2464793638457769984",
"column3": "27246",
"column4": "1.1952813310702996E308",
"column5": "true",
"column6": "gej6pimrvo58",
"column7": "1083541075"
},
{
"column1": "2.0973243E38",
"column2": "6316064103344864256",
"column3": "13153",
"column4": "3.232035544098492E307",
"column5": "false",
"column6": "xr5pydw9vie",
"column7": "535584121"
},
{
"column1": "5.106034E37",
"column2": "7391061472444326912",
"column3": "17670",
"column4": "2.6990741028748347E307",
"column5": "true",
"column6": "wz6hrv0jeos7",
"column7": "840264099"
},
{
"column1": "2.7015147E38",
"column2": "9150685000976729088",
"column3": "31742",
"column4": "3.6277639883903186E307",
"column5": "true",
"column6": "zta2ny9c6k",
"column7": "1545745617"
}
]
Loading

0 comments on commit 987d99f

Please sign in to comment.