Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
c5d9f5b
lint using the default eslint dependencies and fall back on the repos…
conner-zepben Jul 10, 2024
759ac0f
fix syntax error
conner-zepben Jul 10, 2024
f149b91
add legacy peer deps flag
conner-zepben Jul 10, 2024
ab2f288
remove extension flag
conner-zepben Jul 10, 2024
9f92273
add eslint config template
conner-zepben Jul 10, 2024
81f7903
add eslint config template
conner-zepben Jul 10, 2024
299a608
add eslint config template
conner-zepben Jul 10, 2024
92d4fc0
add eslint config template
conner-zepben Jul 10, 2024
85e12db
debug pwd to see where to checkout to if checkout works
conner-zepben Jul 10, 2024
61dd924
testing checkout
conner-zepben Jul 10, 2024
b64eee8
dont specify dependencies and just install all of them
conner-zepben Jul 10, 2024
ed0999c
test linter
conner-zepben Jul 11, 2024
b9ce604
test linter
conner-zepben Jul 11, 2024
c50ac66
test linter
conner-zepben Jul 11, 2024
fc25071
test linter
conner-zepben Jul 11, 2024
6e3f267
test linter
conner-zepben Jul 11, 2024
b3daeea
test linter
conner-zepben Jul 11, 2024
818b9ca
test linter
conner-zepben Jul 11, 2024
c572021
test linter
conner-zepben Jul 11, 2024
029b465
test linter
conner-zepben Jul 11, 2024
0d7ed26
test linter
conner-zepben Jul 11, 2024
828351a
test linter
conner-zepben Jul 11, 2024
9136250
test linter
conner-zepben Jul 11, 2024
71e251e
test linter
conner-zepben Jul 11, 2024
9c5670d
test linter
conner-zepben Jul 11, 2024
bb912e3
test linter
conner-zepben Jul 11, 2024
7dc4b07
test linter fail
conner-zepben Jul 11, 2024
3c00dcb
test linter fail
conner-zepben Jul 11, 2024
a7c8a15
test linter fail
conner-zepben Jul 11, 2024
620149b
test linter fail
conner-zepben Jul 11, 2024
67b2051
test linter fail
conner-zepben Jul 11, 2024
ed89f39
test linter fail
conner-zepben Jul 11, 2024
e09e8b6
test linter fail
conner-zepben Jul 11, 2024
6a2486b
separate lint and build jobs
conner-zepben Jul 11, 2024
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
62 changes: 61 additions & 1 deletion .github/workflows/npm-app-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,65 @@ on:
required: false

jobs:
lint:
runs-on: ubuntu-latest
container: node:20-alpine
continue-on-error: false
outputs:
docs-present: ${{ steps.docs.outputs.present }}
steps:
- name: Install Dependencies
run: |
apk add jq tar alpine-conf git openssh curl bash

- name: Cache nodejs deps
uses: actions/cache@v3
with:
path: ~/.npm
key: npm

- uses: actions/checkout@v3

- name: Cache licence-check
if: ${{ inputs.licencecheck == true }}
uses: actions/cache@v3
with:
path: /lc
key: lcc

- name: Check licence
if: ${{ inputs.licencecheck == true }}
uses: zepben/licence-check-action@main
with:
LC_URL: ${{ secrets.LC_URL }}
PATH: ${{ inputs.sourcepath }}

- name: Set timezone to Australia/ACT
run: |
setup-timezone -z Australia/ACT

- name: create .npmrc
run: |
rm -rf ~/.npmrc
echo "@zepben:registry=${{ secrets.NEXUS_NPM_REPO }}" >> ~/.npmrc
echo "//mavenrepo.zepben.com/repository/zepben-npm/:_authToken=${{ secrets.CI_NPM_TOKEN }}" >> ~/.npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.CI_GITHUB_TOKEN }}" >> ~/.npmrc
echo "\n" >> ~/.npmrc

- name: Install Dependencies
run:
npm install --save-dev --legacy-peer-deps

- name: Lint
id: ci_lint
run: |
echo "Running default linting..."
if ! npm run lint; then
echo "eslint-plugin-import not found, installing and retrying..."
npm install eslint-plugin-import@latest --save-dev
npm run lint
fi

build-and-test:
runs-on: ubuntu-latest
container: node:20-alpine
Expand Down Expand Up @@ -79,7 +138,8 @@ jobs:
echo "//npm.pkg.github.com/:_authToken=${{ secrets.CI_GITHUB_TOKEN }}" >> ~/.npmrc
echo "\n" >> ~/.npmrc

- name: Build and test
- name: Build and Test
id: build_and_test
run: |
echo "NPM is sensitive to .npmrc formatting; check that it has a newline at the end!!!"
npm ci --unsafe-perm
Expand Down
58 changes: 58 additions & 0 deletions .github/workflows/npm-app-snapshot-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,64 @@ on:
required: false

jobs:
lint:
runs-on: ubuntu-latest
container: node:20-alpine
continue-on-error: false
outputs:
docs-present: ${{ steps.docs.outputs.present }}
steps:
- name: Install Dependencies
run: |
apk add jq tar alpine-conf git openssh curl bash

- name: Cache nodejs deps
uses: actions/cache@v3
with:
path: ~/.npm
key: npm

- uses: actions/checkout@v3

- name: Cache licence-check
if: ${{ inputs.licencecheck == true }}
uses: actions/cache@v3
with:
path: /lc
key: lcc

- name: Check licence
if: ${{ inputs.licencecheck == true }}
uses: zepben/licence-check-action@main
with:
LC_URL: ${{ secrets.LC_URL }}
PATH: ${{ inputs.sourcepath }}

- name: Set timezone to Australia/ACT
run: |
setup-timezone -z Australia/ACT

- name: create .npmrc
run: |
rm -rf ~/.npmrc
echo "@zepben:registry=${{ secrets.NEXUS_NPM_REPO }}" >> ~/.npmrc
echo "//mavenrepo.zepben.com/repository/zepben-npm/:_authToken=${{ secrets.CI_NPM_TOKEN }}" >> ~/.npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.CI_GITHUB_TOKEN }}" >> ~/.npmrc
echo "\n" >> ~/.npmrc

- name: Install Dependencies
run:
npm install --save-dev --legacy-peer-deps

- name: Lint
id: ci_lint
run: |
echo "Running default linting..."
if ! npm run lint; then
echo "eslint-plugin-import not found, installing and retrying..."
npm install eslint-plugin-import@latest --save-dev
npm run lint
fi
build-artifact:
runs-on: ubuntu-latest
outputs:
Expand Down
58 changes: 58 additions & 0 deletions .github/workflows/npm-lib-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,64 @@ on:
required: false

jobs:
lint:
runs-on: ubuntu-latest
container: node:20-alpine
continue-on-error: false
outputs:
docs-present: ${{ steps.docs.outputs.present }}
steps:
- name: Install Dependencies
run: |
apk add jq tar alpine-conf git openssh curl bash

- name: Cache nodejs deps
uses: actions/cache@v3
with:
path: ~/.npm
key: npm

- uses: actions/checkout@v3

- name: Cache licence-check
if: ${{ inputs.licencecheck == true }}
uses: actions/cache@v3
with:
path: /lc
key: lcc

- name: Check licence
if: ${{ inputs.licencecheck == true }}
uses: zepben/licence-check-action@main
with:
LC_URL: ${{ secrets.LC_URL }}
PATH: ${{ inputs.sourcepath }}

- name: Set timezone to Australia/ACT
run: |
setup-timezone -z Australia/ACT

- name: create .npmrc
run: |
rm -rf ~/.npmrc
echo "@zepben:registry=${{ secrets.NEXUS_NPM_REPO }}" >> ~/.npmrc
echo "//mavenrepo.zepben.com/repository/zepben-npm/:_authToken=${{ secrets.CI_NPM_TOKEN }}" >> ~/.npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.CI_GITHUB_TOKEN }}" >> ~/.npmrc
echo "\n" >> ~/.npmrc

- name: Install Dependencies
run:
npm install --save-dev --legacy-peer-deps

- name: Lint
id: ci_lint
run: |
echo "Running default linting..."
if ! npm run lint; then
echo "eslint-plugin-import not found, installing and retrying..."
npm install eslint-plugin-import@latest --save-dev
npm run lint
fi
build-and-test:
runs-on: ubuntu-latest
container: node:20-alpine
Expand Down
58 changes: 58 additions & 0 deletions .github/workflows/npm-lib-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,64 @@ on:
required: false

jobs:
lint:
runs-on: ubuntu-latest
container: node:20-alpine
continue-on-error: false
outputs:
docs-present: ${{ steps.docs.outputs.present }}
steps:
- name: Install Dependencies
run: |
apk add jq tar alpine-conf git openssh curl bash

- name: Cache nodejs deps
uses: actions/cache@v3
with:
path: ~/.npm
key: npm

- uses: actions/checkout@v3

- name: Cache licence-check
if: ${{ inputs.licencecheck == true }}
uses: actions/cache@v3
with:
path: /lc
key: lcc

- name: Check licence
if: ${{ inputs.licencecheck == true }}
uses: zepben/licence-check-action@main
with:
LC_URL: ${{ secrets.LC_URL }}
PATH: ${{ inputs.sourcepath }}

- name: Set timezone to Australia/ACT
run: |
setup-timezone -z Australia/ACT

- name: create .npmrc
run: |
rm -rf ~/.npmrc
echo "@zepben:registry=${{ secrets.NEXUS_NPM_REPO }}" >> ~/.npmrc
echo "//mavenrepo.zepben.com/repository/zepben-npm/:_authToken=${{ secrets.CI_NPM_TOKEN }}" >> ~/.npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.CI_GITHUB_TOKEN }}" >> ~/.npmrc
echo "\n" >> ~/.npmrc

- name: Install Dependencies
run:
npm install --save-dev --legacy-peer-deps

- name: Lint
id: ci_lint
run: |
echo "Running default linting..."
if ! npm run lint; then
echo "eslint-plugin-import not found, installing and retrying..."
npm install eslint-plugin-import@latest --save-dev
npm run lint
fi
build-artifact:
runs-on: ubuntu-latest
container: node:20-alpine
Expand Down