Skip to content

Commit

Permalink
Use wes-cli for configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
WesSouza committed Jul 29, 2022
1 parent d0c9757 commit 633e2f6
Show file tree
Hide file tree
Showing 11 changed files with 1,212 additions and 6,536 deletions.
12 changes: 0 additions & 12 deletions .editorconfig

This file was deleted.

70 changes: 22 additions & 48 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,67 +1,41 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"
# ⚠️ WARNING
# This file is auto-generated by https://github.com/WesSouza/wes-cli

name: CodeQL

on:
push:
branches: [ main ]
branches:
- main
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
schedule:
- cron: '39 17 * * 0'
- cron: '41 21 * * 6'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
language: ['javascript']

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
- name: Checkout repository
uses: actions/checkout@v2

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}

#- run: |
# make bootstrap
# make release
- name: Autobuild
uses: github/codeql-action/autobuild@v1

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
Original file line number Diff line number Diff line change
@@ -1,33 +1,41 @@
name: Install, lint, test and build
# ⚠️ WARNING
# This file is auto-generated by https://github.com/WesSouza/wes-cli

name: Lint, Type Check, Test, Build

on:
push:

jobs:
build:
name: Build, lint, and test on Node ${{ matrix.node }} and ${{ matrix.os }}
check:
name: Using Node ${{ matrix.node }}/${{ matrix.os }}

runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ['16.x', '18.x']
os: [ubuntu-latest, windows-latest, macOS-latest]
os: [ubuntu-latest, macOS-latest]

steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Install wes-cli
run: |
npm i -g wes-cli@1.9.2
wes install
- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- name: Install deps and build (with cache)
uses: bahmutov/npm-install@v1

- name: Lint
run: yarn lint

- name: Check Types
run: yarn check:types

- name: Test
run: yarn test --ci --coverage --maxWorkers=2

Expand Down
4 changes: 0 additions & 4 deletions .gitignore

This file was deleted.

12 changes: 12 additions & 0 deletions .wes-defaults/local/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "lgtv-ip-control",
"description": "IP Control module for 2018+ LG TVs",
"version": "1.3.0",
"author": "Wes Souza <hey@wes.dev> (https://wes.dev/)",
"license": "MIT",
"repository": "WesSouza/lgtv-ip-control",
"source": "src/index.ts",
"files": [
"dist"
]
}

0 comments on commit 633e2f6

Please sign in to comment.