-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
11 changed files
with
8,927 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Webpack | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Use Node.js LTS | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 'lts/*' | ||
|
||
- name: "Install dependencies" | ||
shell: bash | ||
run: | | ||
npm install | ||
- name: "Install dependencies in the Webpack bundle test package" | ||
shell: bash | ||
working-directory: ./test/bundling/webpack | ||
run: | | ||
npm install | ||
- name: "Install local kerberos into Webpack bundle test package" | ||
shell: bash | ||
working-directory: ./test/bundling/webpack | ||
run: | | ||
npm run install:kerberos | ||
- name: "Run webpack build" | ||
shell: bash | ||
working-directory: ./test/bundling/webpack | ||
run: | | ||
npm run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
'use strict'; | ||
|
||
const { execSync } = require('node:child_process'); | ||
const { readFileSync } = require('node:fs'); | ||
const { resolve } = require('node:path'); | ||
|
||
const xtrace = (...args) => { | ||
console.log(`running: ${args[0]}`); | ||
return execSync(...args); | ||
}; | ||
|
||
const kerberosRoot = resolve(__dirname, '../../..'); | ||
console.log(`kerberos package root: ${kerberosRoot}`); | ||
|
||
const kerberosVersion = JSON.parse( | ||
readFileSync(resolve(kerberosRoot, 'package.json'), { encoding: 'utf8' }) | ||
).version; | ||
console.log(`kerberos Version: ${kerberosVersion}`); | ||
|
||
xtrace('npm pack --pack-destination test/bundling/webpack', { cwd: kerberosRoot }); | ||
|
||
xtrace(`npm install --no-save kerberos-${kerberosVersion}.tgz`); | ||
|
||
console.log('kerberos installed!'); |
Oops, something went wrong.