Skip to content

Commit

Permalink
Merge branch 'master' into pwa-launch-handler
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 authored Jan 14, 2025
2 parents ac63f92 + 7c9b10e commit 4970f24
Show file tree
Hide file tree
Showing 165 changed files with 17,577 additions and 31,002 deletions.
8 changes: 1 addition & 7 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,5 @@
"@babel/typescript",
["@babel/react", {"runtime": "automatic", "importSource": "@emotion/react"}]
],
"plugins": [
["@babel/plugin-proposal-decorators", {"legacy": true}],
["@babel/plugin-proposal-class-properties", {"loose": false}],
"@babel/proposal-object-rest-spread",
"@babel/plugin-proposal-optional-chaining",
"@emotion/babel-plugin"
]
"plugins": [["@babel/plugin-proposal-decorators", {"legacy": true}], "@emotion/babel-plugin"]
}
4 changes: 4 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"extends": ["plugin:@typescript-eslint/recommended", "prettier"],
"plugins": ["simple-import-sort", "n"],

"parserOptions": {
"project": "./tsconfig.json"
Expand All @@ -11,6 +12,9 @@
},

"rules": {
"n/prefer-node-protocol": "error",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"import/no-extraneous-dependencies": 0,
"no-underscore-dangle": ["error", {"allow": ["_id"]}],
"@typescript-eslint/lines-between-class-members": ["error", "always", {"exceptAfterSingleLine": true}],
Expand Down
26 changes: 20 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,36 @@ on:
- master

jobs:
build:
runs-on: ubuntu-20.04
build-real:
runs-on: ubuntu-24.04

strategy:
matrix:
node: [14, 16]
node: ['20', '22']
fail-fast: false

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'

- run: npm ci
- run: pnpm install --frozen-lockfile
- run: npm run build
- run: npm run start -- --help

build:
# so we do not need to update GitHub repo config
needs: build-real
runs-on: ubuntu-latest

strategy:
matrix:
node: ['18', '20']
fail-fast: false
steps:
- run: echo pass
28 changes: 21 additions & 7 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,36 @@ on:
- master

jobs:
check:
runs-on: ubuntu-20.04
check-real:
runs-on: ubuntu-24.04

strategy:
fail-fast: false
matrix:
node: [16]
node: ['22']
check: [check-source-formatting, check-types, lint]

steps:
- uses: actions/checkout@v3

- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'

- run: npm ci
- run: pnpm install --frozen-lockfile
- run: npm run ${{ matrix.check }}

check:
# so we do not need to update GitHub repo config
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: ['20']
check: [check-source-formatting, check-types, lint]
needs:
- check-real
steps:
- run: echo ok
19 changes: 5 additions & 14 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
jobs:
analyze:
name: Analyze
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04

strategy:
fail-fast: false
Expand All @@ -26,26 +26,17 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@v3

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v3
8 changes: 4 additions & 4 deletions .github/workflows/distribute-archlinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ on:

jobs:
aur:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Update PKGBUILD for AUR
run: |
Expand All @@ -20,10 +20,10 @@ jobs:
sed -i 's/to-be-determined@tbd/[email protected]/' ./distribution/archlinux/flood/PKGBUILD
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3

- name: Publish to AUR
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
build-args: |
AUR_FOLDER=./flood
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/distribute-debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,22 @@ on:

jobs:
flood-bin:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04

strategy:
matrix:
node: [16]
node: ['22']

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'

- name: Set up QEMU
run: |
Expand All @@ -44,7 +46,7 @@ jobs:

- name: Parse version
id: parse_version
run: echo ::set-output name=VERSION::`grep "VERSION = " ./BUILD | cut -d"\"" -f2 | cut -d"-" -f1`
run: echo VERSION=`grep "VERSION = " ./BUILD | cut -d"\"" -f2 | cut -d"-" -f1` >> $GITHUB_OUTPUT

- name: Extract Flood tarball
run: |
Expand All @@ -59,7 +61,7 @@ jobs:
cp -L bazel-bin/flood-deb-x64.deb flood-linux-x64.deb
- name: Upload packages to Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
Loading

0 comments on commit 4970f24

Please sign in to comment.