Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 3 additions & 26 deletions .github/workflows/check-lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@ on: pull_request

jobs:
check-lib:
name: Build main.js and diff on
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
name: Build main.js and diff
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4
Expand All @@ -18,33 +15,13 @@ jobs:
npm run build

- name: Check if main.js has differences
if: matrix.os != 'windows-latest'
run: echo "diff=$(git diff --ignore-space-at-eol --text lib/main.js | wc -l)" >> $GITHUB_ENV

- name: Check if main.js has differences
if: matrix.os == 'windows-latest'
run: echo "diff=$(git diff --ignore-space-at-eol --text lib/main.js | wc -l)" >> $env:GITHUB_ENV

# If main.js was different than expected, upload the actual version
- name: Upload actual main.js
if: ${{ env.diff > 0}}
uses: actions/upload-artifact@v4
with:
name: main.js-${{ matrix.os }}
name: main.js
path: lib/main.js

final-check:
name: Check if main.js has differences on both Ubuntu and Windows
runs-on: ubuntu-latest
needs: check-lib
steps:
- name: Download artifact
uses: actions/download-artifact@v4

- name: Check if both artifacts exist
run: |
ls -R
if [ -d "main.js-windows-latest" ] && [ -d "main.js-ubuntu-latest" ]; then
echo "main.js difference detected. Please check the artifacts for more details."
exit 1
fi
6 changes: 6 additions & 0 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ jobs:

- name: Build GitHub Action
run: npm run build

- name: Install SqlPackage on Ubuntu
if: runner.os == 'Linux'
run: |
dotnet tool install -g microsoft.sqlpackage
echo "$HOME/.dotnet/tools" >> $GITHUB_PATH

- name: Azure Login
uses: azure/login@v2
Expand Down
4 changes: 4 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ module.exports = {
stats: {
warnings: false
},
optimization: {
moduleIds: 'deterministic',
chunkIds: 'deterministic'
},
module: {
rules: [
{
Expand Down
Loading