Skip to content

Commit

Permalink
Merge pull request #29 from fixpoint/refactor
Browse files Browse the repository at this point in the history
Refactor
  • Loading branch information
lambdalisue authored Oct 24, 2024
2 parents 7a3307a + fb17f80 commit 28465b0
Show file tree
Hide file tree
Showing 8 changed files with 70,015 additions and 56,281 deletions.
66 changes: 0 additions & 66 deletions .eslintrc.js

This file was deleted.

21 changes: 18 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,22 @@ name: Test
on: [push]

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

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm ci
- run: npm run lint
- run: npm run build
- run: |
npm run compile
git diff --exit-code
test:
needs: check

strategy:
matrix:
os:
Expand All @@ -14,8 +29,8 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm ci
- run: npm run build

Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/update-main-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Original version
# https://github.com/actions/checkout/blob/11bd71901bbe5b1630ceea73d27597364c9af683/.github/workflows/update-main-version.yml
name: Update Main Version
run-name: Move ${{ github.event.inputs.major_version }} to ${{ github.event.inputs.target }}

on:
workflow_dispatch:
inputs:
target:
description: The tag or reference to use
required: true
major_version:
type: choice
description: The major version to update
options:
- v4

jobs:
tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Git config
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Tag new target
run: git tag -f ${{ github.event.inputs.major_version }} ${{ github.event.inputs.target }}
- name: Push new tag
run: git push origin ${{ github.event.inputs.major_version }} --force
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Get [Azure Storage connection strings](https://docs.microsoft.com/en-us/azure/st

```yaml
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4

- run: mkdir -p path/to/artifact

Expand Down
Loading

0 comments on commit 28465b0

Please sign in to comment.