From 87dc14bd6383ffaa1c0188b1943470ba99381230 Mon Sep 17 00:00:00 2001 From: Sam Nolan Date: Fri, 18 Feb 2022 13:41:37 +1100 Subject: [PATCH 1/4] Add Squiggle Lang Jest GitHub Action --- .github/workflows/lang-jest.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/lang-jest.yml diff --git a/.github/workflows/lang-jest.yml b/.github/workflows/lang-jest.yml new file mode 100644 index 00000000..b6f58f0e --- /dev/null +++ b/.github/workflows/lang-jest.yml @@ -0,0 +1,16 @@ +name: Squiggle Lang Jest Tests + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + run: + shell: bash + working-directory: packages/squiggle-lang + steps: + - uses: actions/checkout@v2 + - name: Install Packages + run: yarn + - name: Run tests + run: yarn test From a2ccf46a2a8a2b42e4fbb3b078f90bfa46c19dbc Mon Sep 17 00:00:00 2001 From: Sam Nolan Date: Fri, 18 Feb 2022 13:44:35 +1100 Subject: [PATCH 2/4] Add defaults: to workflow spec --- .github/workflows/lang-jest.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lang-jest.yml b/.github/workflows/lang-jest.yml index b6f58f0e..1e5ae5e7 100644 --- a/.github/workflows/lang-jest.yml +++ b/.github/workflows/lang-jest.yml @@ -5,9 +5,10 @@ on: [push] jobs: build: runs-on: ubuntu-latest - run: - shell: bash - working-directory: packages/squiggle-lang + defaults: + run: + shell: bash + working-directory: packages/squiggle-lang steps: - uses: actions/checkout@v2 - name: Install Packages From b848509d71f31d0bfe5335ec6ad76d3287afd3c7 Mon Sep 17 00:00:00 2001 From: Sam Nolan Date: Fri, 18 Feb 2022 13:46:44 +1100 Subject: [PATCH 3/4] Add rescript build to test process --- .github/workflows/lang-jest.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/lang-jest.yml b/.github/workflows/lang-jest.yml index 1e5ae5e7..c734737d 100644 --- a/.github/workflows/lang-jest.yml +++ b/.github/workflows/lang-jest.yml @@ -13,5 +13,7 @@ jobs: - uses: actions/checkout@v2 - name: Install Packages run: yarn + - name: Build rescript + run: yarn recsript build -with-deps - name: Run tests run: yarn test From ebba6fee6e9195d2ed31d2b45fe9b51695266e33 Mon Sep 17 00:00:00 2001 From: Sam Nolan Date: Fri, 18 Feb 2022 13:48:08 +1100 Subject: [PATCH 4/4] Correct spelling of rescript --- .github/workflows/lang-jest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lang-jest.yml b/.github/workflows/lang-jest.yml index c734737d..f6977301 100644 --- a/.github/workflows/lang-jest.yml +++ b/.github/workflows/lang-jest.yml @@ -14,6 +14,6 @@ jobs: - name: Install Packages run: yarn - name: Build rescript - run: yarn recsript build -with-deps + run: yarn rescript build -with-deps - name: Run tests run: yarn test