Skip to content

Commit

Permalink
API for generating airspace ini config using typed code (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
zefir-git authored Feb 4, 2025
2 parents 6bad7d6 + 6e1b208 commit 6e756a9
Show file tree
Hide file tree
Showing 41 changed files with 34,504 additions and 15,274 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @zefir-git
19 changes: 19 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: 2
updates:
- package-ecosystem: npm
directory: /
schedule:
interval: weekly
day: monday
time: "06:00"
reviewers:
- zefir-git

- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
day: monday
time: "06:00"
reviewers:
- zefir-git
93 changes: 93 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]
release:
types: [published]

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
cache: npm

- name: Install latest NPM
run: npm i -g npm@latest

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Pack
run: npm pack

- name: Upload package artifact
uses: actions/upload-artifact@v4
with:
name: package
path: eatc-ltc-0.0.0-dev.tgz
publish:
name: Publish
needs: build
if: github.event_name == 'release'
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
pages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
cache: npm

- name: Install latest NPM
run: npm i -g npm@latest

- name: Install dependencies
run: npm ci

- name: Download build artifact
uses: actions/download-artifact@v4
with:
name: package
path: ./package

- name: Extract build package
working-directory: ./package
run: tar -xzf eatc-ltc-0.0.0-dev.tgz

- name: Set version from release tag
run: npm version ${{ github.event.release.tag_name }} --git-tag-version=false

- name: Copy package.json to build package
run: cp package.json package/package

- name: Generate Endless ATC config
working-directory: ./package/package
run: npm run gen

- name: Upload to release
uses: cloudnode-pro/release-upload-asset@1.0.2
with:
gh-token: ${{ github.token }}
files: ./package/package/LTCC.ini; type=text/plain
40 changes: 40 additions & 0 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CodeQL

on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "0 6 * * 1"

jobs:
analyze:
name: Analyse (${{ matrix.language }})
runs-on: ubuntu-latest
timeout-minutes: 360
permissions:
security-events: write
packages: read
actions: read
contents: read

strategy:
fail-fast: false
matrix:
language: [javascript-typescript]

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

- name: Initialise CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}

- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
dist/
LTCC.ini
5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6e756a9

Please sign in to comment.