Skip to content

Commit

Permalink
Merge pull request #38 from MaddyGuthridge/maddy-unify-data-structures
Browse files Browse the repository at this point in the history
Unify item and group data structures
  • Loading branch information
MaddyGuthridge authored Feb 2, 2025
2 parents 57ff402 + 36af48d commit e911f23
Show file tree
Hide file tree
Showing 226 changed files with 11,507 additions and 11,043 deletions.
43 changes: 6 additions & 37 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,59 +14,28 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 22.x
cache: 'npm'
- run: npm ci
# Set up SSH access, as the test suite needs to be able to access git
# repos to validate functionality.
- name: Decrypt secrets
env:
PASSWORD: ${{ secrets.SSH_ENCRYPTION_KEY }}
run: |
gpg --batch --passphrase $PASSWORD --output .github/workflows/secrets/id_ed25519 --decrypt .github/workflows/secrets/id_ed25519.enc
- name: Setup SSH agent
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
mkdir -p ~/.ssh
ssh-keyscan github.com >> ~/.ssh/known_hosts
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
chmod 0600 .github/workflows/secrets/id_ed25519
ssh-add .github/workflows/secrets/id_ed25519
- name: Set up git config
run: |
git config --global user.name "MadGutsBot"
git config --global user.email "[email protected]"
- name: Set up .env
run: cp .env.example .env
- name: Run test suite
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: npm test
- name: Show server output
if: always()
run: cat server.log
- name: Cleanup SSH Agent
if: always()
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
ssh-add -D
rm -Rf ~/.ssh
rm .github/workflows/secrets/id_ed25519

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 22.x
cache: 'npm'
- run: npm ci
- name: Run linting
Expand All @@ -76,10 +45,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 22.x
cache: 'npm'
- run: npm ci
- name: Run type-checking
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/secrets/.gitignore

This file was deleted.

44 changes: 0 additions & 44 deletions .github/workflows/secrets/README.md

This file was deleted.

Binary file removed .github/workflows/secrets/id_ed25519.enc
Binary file not shown.
1 change: 0 additions & 1 deletion .github/workflows/secrets/id_ed25519.pub

This file was deleted.

1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v22.12.0
3 changes: 3 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ export default ts.config(
'@typescript-eslint/no-empty-function': 'off',
// Use `type` instead of `interface`
"@typescript-eslint/consistent-type-definitions": ["error", 'type'],
// This error is already picked up by TypeScript, and it's annoying to need to silence it
// twice when it is incorrect
"@typescript-eslint/no-unsafe-call": "off"
},
},
{
Expand Down
Loading

0 comments on commit e911f23

Please sign in to comment.