From 5b1856c8a302b67fe0eeaf7f2e2c630e3e69ba78 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Tue, 17 May 2022 08:21:41 +0100 Subject: [PATCH] ci: migrate to fastify reusable workflow --- .github/workflows/ci.yml | 42 ++++++---------------------------------- README.md | 1 - 2 files changed, 6 insertions(+), 37 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4d0f058..32b3d16 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,45 +1,15 @@ name: CI -'on': + +on: push: paths-ignore: - - docs/** + - 'docs/**' - '*.md' pull_request: paths-ignore: - - docs/** + - 'docs/**' - '*.md' + jobs: test: - runs-on: ${{ matrix.os }} - strategy: - matrix: - node-version: - - 14 - - 16 - - 18 - os: - - macos-latest - - ubuntu-latest - - windows-latest - steps: - - uses: actions/checkout@v3 - - name: Use Node.js - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - - name: Install Dependencies - run: | - npm install --ignore-scripts - - name: Run Tests - run: | - npm test - automerge: - needs: test - runs-on: ubuntu-latest - permissions: - pull-requests: write - contents: write - steps: - - uses: fastify/github-action-merge-dependabot@v3 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} + uses: fastify/workflows/.github/workflows/plugins-ci.yml@v3 diff --git a/README.md b/README.md index 0fe1f35..4be652a 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ ![CI](https://github.com/fastify/fastify-secure-session/workflows/CI/badge.svg) [![NPM version](https://img.shields.io/npm/v/@fastify/secure-session.svg?style=flat)](https://www.npmjs.com/package/@fastify/secure-session) -[![Known Vulnerabilities](https://snyk.io/test/github/fastify/fastify-secure-session/badge.svg)](https://snyk.io/test/github/fastify/fastify-secure-session) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://standardjs.com/) Create a secure stateless cookie session for Fastify, based on libsodium's