From 9b7f795982c99d63fda7a020ee1c518fda77f96a Mon Sep 17 00:00:00 2001 From: Sebastian Blask Date: Tue, 21 Nov 2023 01:46:01 +1300 Subject: [PATCH] workflow --- .github/workflows/build.yml | 25 ------------------------- .github/workflows/pre-commit.yml | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 25 deletions(-) delete mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/pre-commit.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index ac33512..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Build - -on: - push: - schedule: - - cron: 0 0 * * 0 # weekly - -jobs: - Build: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: - - ubuntu-20.04 - node-version: - - 16.x - steps: - - name: Set up Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - uses: actions/checkout@v2 - - run: npm install - - run: npm run test - - run: npm run lint diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml new file mode 100644 index 0000000..6ea5294 --- /dev/null +++ b/.github/workflows/pre-commit.yml @@ -0,0 +1,16 @@ +name: Build + +on: + push: + +jobs: + Build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: + - ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v3 + - uses: pre-commit/action@v3.0.0