Skip to content

Commit

Permalink
Merge pull request #1 from anyone-developer/develop
Browse files Browse the repository at this point in the history
Code Merge
  • Loading branch information
Edward-Roshan authored Nov 16, 2020
2 parents ac490c1 + 2f06455 commit 8469dc6
Show file tree
Hide file tree
Showing 58 changed files with 20,541 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .fossa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by FOSSA CLI (https://github.com/fossas/fossa-cli)
# Visit https://fossa.com to learn more

version: 2
cli:
server: https://app.fossa.com
fetcher: custom
project: [email protected]:anyone-developer/anyone-validate-xml.git
analyze:
modules:
- name: .
type: npm
target: .
path: .
# - name: .
# type: npm
# target: .
# path: .
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
time: "21:00"
open-pull-requests-limit: 10
47 changes: 47 additions & 0 deletions .github/workflows/nightly-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: nightly-build
on:
pull_request:
branches:
- main
types: [opened, edited, ready_for_review, reopened, synchronize]
jobs:
license-scanning:
runs-on: ubuntu-latest
name: run fossa scanning to check license conflict
continue-on-error: true
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Run FOSSA scan and upload build data
uses: fossa-contrib/[email protected]
with:
fossa-api-key: ${{ secrets.FOSSA_API_KEY }}
github-token: ${{ github.token }}
test-action-locally:
runs-on: ubuntu-latest
name: dry run action test
steps:
- name: Checkout repo
uses: actions/checkout@v2
- run: npm ci
- name: Check xo formatter
run: npm run xo
- name: validate-xml
uses: ./
id: validation
with:
file-extension: '.config,.xml'
ignore-files: 'README.md'
ignore-directories: '.git'
read-path: 'sample_folder'
test-package:
runs-on: ubuntu-latest
name: dry run test
steps:
- name: Checkout repo
uses: actions/checkout@v2
- run: npm ci
- name: Check xo formatter
run: npm run xo
- run: npm test
126 changes: 126 additions & 0 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
on:
push:
branches:
- main
name: release-build
jobs:
npm-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci
- run: npm test
test-action-locally:
needs: npm-test
runs-on: ubuntu-latest
name: dry run action test
steps:
- name: Checkout repo
uses: actions/checkout@v2
- run: npm ci
- name: Check xo formatter
run: npm run xo
- name: validate-xml
uses: ./
id: validation
with:
file-extension: '.config,.xml'
ignore-files: 'README.md'
ignore-directories: '.git'
read-path: 'sample_folder'
build-release:
needs: test-action-locally
name: release-build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup node environment
uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci
- name: Build project
run: npm run build
- name: Package artifact
run: |
mv build/release/anyone-validate-xml-win.exe anyone-validate-xml-win.exe && zip windows.zip anyone-validate-xml-win.exe
mv build/release/anyone-validate-xml-macos anyone-validate-xml-macos && zip macos.zip anyone-validate-xml-macos
mv build/release/anyone-validate-xml-linux anyone-validate-xml-linux && zip linux.zip anyone-validate-xml-linux
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: regular-release/#${{ github.run_number }}
release_name: Regular release(#${{ github.run_number }})
draft: true
prerelease: true
- name: Upload Windows artifact
id: upload-windows-artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./windows.zip
asset_name: windows.zip
asset_content_type: application/zip
- name: Upload Macos artifact
id: upload-macos-artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./macos.zip
asset_name: macos.zip
asset_content_type: application/zip
- name: Upload Linux artifact
id: upload-linux-artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./linux.zip
asset_name: linux.zip
asset_content_type: application/zip
# I need another action to create choco environment from windows.
# - name: Upload Package to Chocolatey
# run: |
# choco apikey --key ${{ secrets.CHOCOLATEY_API_KEY }} --source https://push.chocolatey.org/
# choco push MyPackage.${{ github.run_number }}.nupkg --source https://push.chocolatey.org/
publish-npm:
needs: test-action-locally
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
scope: '@anyone-developer'
- run: npm ci
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

publish-gpr:
needs: test-action-locally
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
scope: '@anyone-developer'
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
19 changes: 19 additions & 0 deletions .github/workflows/release-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: release-test
on:
schedule:
- cron: '0 9 * * *'
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: validate
uses: anyone-developer/anyone-validate-xml@main
with:
file-extension: '.config,.xml'
ignore-files: 'README.md'
ignore-directories: '.git'
read-path: 'sample_folder'
Loading

0 comments on commit 8469dc6

Please sign in to comment.