Skip to content

Commit

Permalink
Merge pull request #34 from mraible/fix-github-actions
Browse files Browse the repository at this point in the history
Fix GitHub Actions
  • Loading branch information
mraible authored Sep 26, 2024
2 parents 0d499a3 + acb0013 commit b5f56f0
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 29 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Sample CI
on: [ push, pull_request ]

jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.21.x'
- name: Install Go dependencies
run: |
cd functions/Func_Jobs
go get .
cd ../job_history
go get .
- name: Build Go functions
run: |
go build -C functions/Func_Jobs
go build -C functions/job_history
- name: Use Node 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'yarn'
cache-dependency-path: ui/pages/scalable-rtr-react
- name: Run yarn install
uses: borales/actions-yarn@v5
with:
cmd: install
dir: ui/pages/scalable-rtr-react
- name: Build React app
uses: borales/actions-yarn@v5
with:
cmd: build
dir: ui/pages/scalable-rtr-react
- name: Test the React app
uses: borales/actions-yarn@v5
with:
cmd: test
dir: ui/pages/scalable-rtr-react
28 changes: 0 additions & 28 deletions ui/pages/scalable-rtr-react/.github/workflows/main.yml

This file was deleted.

2 changes: 1 addition & 1 deletion ui/pages/scalable-rtr-react/src/lib/utils/datetime.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe("toZoned method", () => {
test("Malformed timestamp", () => {
expect(() => {
toZoned({ timestamp: "asdf" });
}).toThrow(new RangeError("Cannot parse: asdf[UTC]q"));
}).toThrow(new RangeError("Cannot parse: asdf[UTC]"));
});

test("Invalid date", () => {
Expand Down

0 comments on commit b5f56f0

Please sign in to comment.