Skip to content

Commit

Permalink
this should work
Browse files Browse the repository at this point in the history
  • Loading branch information
Gusarich committed Jul 13, 2024
1 parent 83414c5 commit 8a6005b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/tact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ jobs:
id: capture_stdlib
run: |
FILE_PATH="src/imports/stdlib.ts"
ORIGINAL_CONTENT=$(cat "$FILE_PATH")
echo "::set-output name=original_content::$ORIGINAL_CONTENT"
cp "$FILE_PATH" "$FILE_PATH.original"
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
Expand All @@ -47,23 +46,26 @@ jobs:
run: |
yarn cross-env echo $NODE_ENV
- name: Build and Test Tact compiler
- name: Build Tact compiler
run: |
yarn clean
yarn gen
yarn build
yarn coverage
- name: Verify fresh compiled stdlib
run: |
FILE_PATH="src/imports/stdlib.ts"
ORIGINAL_CONTENT="${{ steps.capture_stdlib.outputs.original_content }}"
CURRENT_CONTENT=$(cat "$FILE_PATH")
if [ "$CURRENT_CONTENT" != "$ORIGINAL_CONTENT" ]; then
if ! cmp -s "$FILE_PATH" "$FILE_PATH.original"; then
echo "The stdlib.ts content does not match after compilation. Failing the workflow."
exit 1
fi
- name: Test Tact compiler
run: |
yarn coverage
- name: Check there are no errors reported by ESLint
run: |
Expand Down

0 comments on commit 8a6005b

Please sign in to comment.