Skip to content

Commit

Permalink
fix: merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabb-c committed Feb 16, 2023
2 parents 9451b84 + fc5f5f9 commit 2256231
Show file tree
Hide file tree
Showing 8 changed files with 94 additions and 152 deletions.
27 changes: 7 additions & 20 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,48 +2,35 @@ name: Build

on:
pull_request:
branches: *
branches: "*"

push:
branches: *
branches: "*"

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [current, latest]
node-version: [lts/gallium, latest]

steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Set up Node ${{ matrix.node-version }}
uses: actions/setup-node@v3.6.0
with:
node-version: ${{ matrix.node-version }}

- uses: pnpm/action-setup@v2.2.4
name: Install pnpm
id: pnpm-install
with:
version: latest
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
- name: Set up Node ${{ matrix.node-version }}
uses: actions/setup-node@v3.6.0
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
node-version: ${{ matrix.node-version }}
cache: pnpm

- name: Install dependencies
run: pnpm install --frozen-lockfile
Expand Down
33 changes: 10 additions & 23 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,46 +5,33 @@ on:
branches: [master]

jobs:
build:
coverage:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Node
uses: actions/setup-node@v3.6.0
with:
node-version: current

- uses: pnpm/action-setup@v2.2.4
name: Install pnpm
- name: Install pnpm
uses: pnpm/action-setup@v2.2.4
id: pnpm-install
with:
version: latest
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
- name: Setup Node.js lts/gallium
uses: actions/setup-node@v3.6.0
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
node-version: lts/gallium
cache: pnpm

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Coverage
- name: Generate coverage report
run: pnpm test:coverage

- name: Upload coverage to Codecov
- name: Upload coverage report to Codecov
run: bash <(curl -s https://codecov.io/bash)
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
54 changes: 0 additions & 54 deletions .github/workflows/dev.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Lint

on:
pull_request:
branches: "*"

push:
branches: "*"

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3

- uses: pnpm/action-setup@v2.2.4
name: Install pnpm
id: pnpm-install
with:
version: latest
run_install: false

- name: Setup Node lts/gallium
uses: actions/setup-node@v3.6.0
with:
node-version: lts/gallium
cache: pnpm

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Audit installed dependencies
run: pnpm audit

- name: Lint (ESLint)
run: pnpm lint

- name: Typecheck (tsc)
run: pnpm lint:tsc
54 changes: 0 additions & 54 deletions .github/workflows/master.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Test

on:
pull_request:
branches: "*"

push:
branches: "*"

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install pnpm
uses: pnpm/action-setup@v2.2.4
id: pnpm-install
with:
version: latest
run_install: false

- name: Setup Node.js lts/gallium
uses: actions/setup-node@v3.6.0
with:
node-version: lts/gallium
cache: pnpm

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Run tests
run: pnpm test:ci
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pokenode-ts",
"version": "1.16.1",
"version": "1.17.0",
"private": false,
"description": "A lightweight Node.js wrapper for the PokéAPI with built-in types.",
"keywords": [
Expand Down
2 changes: 2 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sonar.projectKey=Gabb-c_pokenode-ts
sonar.organization=gabb-c

0 comments on commit 2256231

Please sign in to comment.