diff --git a/.github/workflows/deno.yml b/.github/workflows/deno.yml index 196f67a..07b943a 100644 --- a/.github/workflows/deno.yml +++ b/.github/workflows/deno.yml @@ -1,13 +1,13 @@ name: Deno CI on: push: - branches: - - master + pull_request: + types: [opened, synchronize, reopened, closed] jobs: build: - name: ${{ matrix.kind }} ${{ matrix.os }} + name: ${{ matrix.os }} runs-on: ${{ matrix.os }} - if: "!contains(github.event.head_commit.message, '[skip ci]')" + if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }} strategy: matrix: os: [macOS-latest, ubuntu-latest, windows-latest] @@ -16,26 +16,26 @@ jobs: DENO_BUILD_MODE: release V8_BINARY: true steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup Deno - uses: denolib/setup-deno@master + uses: denoland/setup-deno@v1 with: - deno-version: 1.x + deno-version: v1.x - name: Tests run: deno test --allow-read release: name: Release - runs-on: ubuntu-18.04 - if: "!contains(github.event.head_commit.message, '[skip ci]')" + runs-on: ubuntu-latest + if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Node.js - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: - node-version: 12.17.0 + node-version: latest - name: Setup package.json - run: echo '{"name":"@denorg/qrcode","version":"0.0.0","publishConfig":{"access":"public"},"scripts":{"semantic-release":"semantic-release"},"repository":{"type":"git","url":"https://github.com/denorg/qrcode.git"},"author":"Denorg ","license":"MIT","bugs":{"url":"https://github.com/denorg/qrcode/issues"},"homepage":"https://denorg.github.io/qrcode/","devDependencies":{"semantic-release":"^17.0.4","semantic-release-gitmoji":"^1.3.3"}}' > package.json + run: echo '{"name":"@denorg/qrcode","version":"0.0.0","publishConfig":{"access":"public"},"scripts":{"semantic-release":"semantic-release"},"repository":{"type":"git","url":"git@github.com:actions/checkout.git"},"author":"Denorg ","license":"MIT","bugs":{"url":"https://github.com/denorg/qrcode/issues"},"homepage":"https://denorg.github.io/qrcode/","devDependencies":{"semantic-release":"^17.0.4","semantic-release-gitmoji":"^1.3.3"}}' > package.json - name: Install dependencies run: npm install - name: Release diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 4a03564..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Test CI -on: - push: - branches-ignore: - - "master" - pull_request: - branches-ignore: - - "master" -jobs: - build: - name: ${{ matrix.kind }} ${{ matrix.os }} - runs-on: ${{ matrix.os }} - if: "!contains(github.event.head_commit.message, '[skip ci]')" - strategy: - matrix: - os: [macOS-latest, ubuntu-latest, windows-latest] - env: - GH_ACTIONS: true - DENO_BUILD_MODE: release - V8_BINARY: true - steps: - - uses: actions/checkout@v2 - - name: Setup Deno - uses: denolib/setup-deno@master - with: - deno-version: 1.x - - name: Run tests - run: deno test --allow-read