Skip to content

Commit

Permalink
chore(deps-dev): Bump eslint-plugin-github from 4.8.0 to 4.9.2 (#79)
Browse files Browse the repository at this point in the history
Bumps [eslint-plugin-github](https://github.com/github/eslint-plugin-github) from 4.8.0 to 4.9.2.
- [Release notes](https://github.com/github/eslint-plugin-github/releases)
- [Commits](github/eslint-plugin-github@v4.8.0...v4.9.2)

---
updated-dependencies:
- dependency-name: eslint-plugin-github
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Oğuzhan Durgun <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored Aug 2, 2023
1 parent bad2d4d commit 557c590
Show file tree
Hide file tree
Showing 12 changed files with 9,371 additions and 7,207 deletions.
52 changes: 0 additions & 52 deletions .github/workflows/check-dist.yml

This file was deleted.

75 changes: 75 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: 'CI'
on:
pull_request:
push:
branches:
- main

jobs:
buildtest:
name: Build and Unit Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set Node.js 16
uses: actions/setup-node@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
node-version: 16.x

- name: Print Node.js and npm version
run: |
node --version
npm --version
- run: |
npm install
- run: |
npm run all
use:
name: Use
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set Node.js 16
uses: actions/setup-node@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
node-version: 16.x

- name: Print Node.js and npm version
run: |
node --version
npm --version
- uses: ./
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

checkdist:
name: Check dist/index.js
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set Node.js 16
uses: actions/setup-node@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
node-version: 16.x

- name: Install dependencies
run: npm ci --legacy-peer-deps

- name: Rebuild the dist/ directory
run: npm run build

- name: Compare the expected and actual dist/ directories
run: |
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. See status below:"
git diff
exit 1
fi
id: diff
25 changes: 0 additions & 25 deletions .github/workflows/test.yml

This file was deleted.

7 changes: 6 additions & 1 deletion __tests__/get-url-to-download.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2021-2023 Zenauth Ltd.
// SPDX-License-Identifier: Apache-2.0

const fetch = require('node-fetch')
import {expect, test} from '@jest/globals'
import {Octokit} from '@octokit/core'
import getURLToDownload from './../src/get-url-to-download'
Expand Down Expand Up @@ -34,7 +35,11 @@ test('test getURLToDownload()', async () => {
}
]

const octokit = new Octokit({})
const octokit = new Octokit({
request: {
fetch
}
})
for (const testCase of testCases) {
const url = await getURLToDownload(
octokit,
Expand Down
7 changes: 6 additions & 1 deletion __tests__/get-version.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2021-2023 Zenauth Ltd.
// SPDX-License-Identifier: Apache-2.0

const fetch = require('node-fetch')
import {expect, test} from '@jest/globals'
import {Octokit} from '@octokit/core'
import getVersion from './../src/get-version'
Expand All @@ -17,7 +18,11 @@ test('test getVersion()', async () => {
{input: 'latest', unexpected: undefined}
]

const octokit = new Octokit({})
const octokit = new Octokit({
request: {
fetch
}
})
for (const testCase of testCasesWithExpected) {
const version = await getVersion(octokit, testCase.input)

Expand Down
Loading

0 comments on commit 557c590

Please sign in to comment.