Skip to content

Commit

Permalink
Initial import
Browse files Browse the repository at this point in the history
  • Loading branch information
karlvr committed Oct 6, 2021
0 parents commit e52b118
Show file tree
Hide file tree
Showing 31 changed files with 10,198 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
10 changes: 10 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist/
node_modules/
47 changes: 47 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
module.exports = {
'extends': ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:jest/recommended'],
'env': {
'node': true,
'jest': true,
'es6': true,
},
'rules': {
'array-bracket-spacing': 'warn',
'arrow-spacing': 'warn',
'block-spacing': 'warn',
'brace-style': 'warn',
'comma-dangle': ['warn', 'always-multiline'],
'comma-spacing': 'warn',
'computed-property-spacing': 'warn',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-member-accessibility': 'warn',
'func-call-spacing': 'warn',
'generator-star-spacing': ['warn', 'after'],
// https://github.com/typescript-eslint/typescript-eslint/blob/v1.6.0/packages/eslint-plugin/docs/rules/indent.md
'indent': 'off',
'@typescript-eslint/indent': ['warn', 'tab'],
'key-spacing': 'warn',
'keyword-spacing': 'warn',
'@typescript-eslint/member-delimiter-style': ['warn', { 'multiline': { 'delimiter': 'none' } } ],
'@typescript-eslint/member-ordering': 'warn',
'@typescript-eslint/no-empty-interface': 'off',
'no-multi-spaces': 'warn',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-use-before-define': ['error', 'nofunc'],
'@typescript-eslint/no-var-requires': 'off',
'no-whitespace-before-property': 'warn',
'object-curly-spacing': ['warn', 'always'],
'rest-spread-spacing': 'warn',
'semi': ['warn', 'never'],
'semi-spacing': 'warn',
'space-before-blocks': 'warn',
'space-before-function-paren': ['warn', 'never'],
'space-in-parens': 'warn',
'space-infix-ops': 'warn',
'space-unary-ops': 'warn',
'switch-colon-spacing': 'warn',
'template-curly-spacing': 'warn',
'quotes': ['warn', 'single'],
'yield-star-spacing': 'warn',
},
}
9 changes: 9 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
target-branch: main
schedule:
interval: daily
timezone: UTC
open-pull-requests-limit: 10
60 changes: 60 additions & 0 deletions .github/workflows/github-actions-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: "build-test"

on: # rebuild any PRs and main branch changes
pull_request:
push:
branches:
- main
- develop

jobs:

build: # make sure build/ci work properly
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- run: |
curl -f https://get.pnpm.io/v6.14.js | node - add --global pnpm@6
pnpm install
pnpm test
test-basic:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: ./
with:
toolchains: '[{"jdkVersion": "$((steps.setupJava.outputs.version))", "jdkHome": "$((steps.setupJava.outputs.path))"}]'
- run: |
cat ~/.m2/toolchains.xml
test-expanded:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: ./
with:
toolchains: '[{"jdkVersion": "1.8", "provides": {"vendor": "temurin"}, "jdkHome": "/java/8", "configuration": {"extra": "read all about it"}}]'
outputFile: .m2/toolchains.xml
- run: |
cat .m2/toolchains.xml
test-filepath:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: ./
with:
outputFile: custom.xml
- run: |
cat custom.xml
test-env-filepath:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: ./
with:
outputFile: $GITHUB_WORKSPACE/custom.xml
- run: |
cat $GITHUB_WORKSPACE/custom.xml
71 changes: 71 additions & 0 deletions .github/workflows/github-actions-codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# 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"

on:
push:
branches: [ main, develop ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
schedule:
- cron: '15 17 * * 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

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

# ✏️ 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

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/coverage
/lib
/node_modules
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
12.22.6
9 changes: 9 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"eslint.validate": [
"javascript",
"typescript"
],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# maven-toolchains-xml-action

## 1.0.0
### Major Changes

- Initial release
Loading

0 comments on commit e52b118

Please sign in to comment.