mirror of
https://github.com/amark/gun.git
synced 2025-11-23 22:15:55 +00:00
ci failed cause github made API breaking changes... does this fix?
This commit is contained in:
parent
ff4bf9293c
commit
4b43fa7f2c
46
.github/workflows/ci.yml
vendored
46
.github/workflows/ci.yml
vendored
@ -1,42 +1,40 @@
|
|||||||
name: ci
|
name: ci
|
||||||
|
|
||||||
on:
|
on:
|
||||||
- push
|
push:
|
||||||
- pull_request
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
test:
|
test:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [ 14.x ]
|
node-version: [14.x]
|
||||||
os: [ ubuntu-latest ]
|
os: [ubuntu-latest]
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
# checkout the code
|
# checkout the code
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4 # Updated to v4 (latest as of 2025)
|
||||||
|
|
||||||
# verify the version in package.json matches the release tag
|
# verify the version in package.json matches the release tag
|
||||||
- name: Version
|
- name: Version
|
||||||
uses: tcurdt/action-verify-version-npm@master
|
uses: tcurdt/action-verify-version-npm@master # No version update as it's using @master
|
||||||
|
|
||||||
# setup the node version
|
# setup the node version
|
||||||
- name: Setup Node ${{ matrix.node-version }}
|
- name: Setup Node ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v4 # Updated to v4 (latest as of 2025)
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
|
|
||||||
# cache node_modules if we can
|
# cache node_modules if we can
|
||||||
- name: Cache
|
- name: Cache
|
||||||
id: cache-modules
|
id: cache-modules
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v4 # Updated to v4 (latest as of 2025)
|
||||||
with:
|
with:
|
||||||
path: node_modules
|
path: node_modules
|
||||||
key: ${{ matrix.node-version }}-${{ runner.OS }}-build-${{ hashFiles('package.json') }}
|
key: ${{ matrix.node-version }}-${{ runner.os }}-build-${{ hashFiles('package.json') }}
|
||||||
|
|
||||||
# ottherweise run install
|
# otherwise run install
|
||||||
- name: Install
|
- name: Install
|
||||||
if: steps.cache-modules.outputs.cache-hit != 'true'
|
if: steps.cache-modules.outputs.cache-hit != 'true'
|
||||||
run: npm install
|
run: npm install
|
||||||
@ -48,34 +46,33 @@ jobs:
|
|||||||
# create github release
|
# create github release
|
||||||
release:
|
release:
|
||||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
|
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
|
||||||
needs: [ test ]
|
needs: [test]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
# create github release (which triggers the release workflows)
|
# create github release (which triggers the release workflows)
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v2 # Updated to v2 (latest stable version as of 2025)
|
||||||
# env:
|
# env:
|
||||||
# GITHUB_TOKEN: ${{ secrets.PAT }}
|
# GITHUB_TOKEN: ${{ secrets.PAT }}
|
||||||
|
|
||||||
# # publish latest master or release to dockerhub
|
# # publish latest master or release to dockerhub
|
||||||
# dockerhub:
|
# dockerhub:
|
||||||
# if: github.event_name == 'push'
|
# if: github.event_name == 'push'
|
||||||
# needs: [ test ]
|
# needs: [test]
|
||||||
# runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
# env:
|
# env:
|
||||||
# image: ${{ secrets.DOCKERHUB_USERNAME }}/gun
|
# image: ${{ secrets.DOCKERHUB_USERNAME }}/gun
|
||||||
# steps:
|
# steps:
|
||||||
|
#
|
||||||
# - name: Checkout
|
# - name: Checkout
|
||||||
# uses: actions/checkout@v2
|
# uses: actions/checkout@v4 # Updated to v4
|
||||||
|
#
|
||||||
# - name: Login
|
# - name: Login
|
||||||
# env:
|
# env:
|
||||||
# DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
|
# DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
# DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
|
# DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
# run: echo -n ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
|
# run: echo -n ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
|
||||||
|
#
|
||||||
# - name: Build
|
# - name: Build
|
||||||
# run: |
|
# run: |
|
||||||
# echo "SHA=$GITHUB_SHA"
|
# echo "SHA=$GITHUB_SHA"
|
||||||
@ -89,21 +86,18 @@ jobs:
|
|||||||
# --tag ${{ env.image }}:${GITHUB_REF##*/} \
|
# --tag ${{ env.image }}:${GITHUB_REF##*/} \
|
||||||
# --tag ${{ env.image }}:latest \
|
# --tag ${{ env.image }}:latest \
|
||||||
# .
|
# .
|
||||||
|
#
|
||||||
# - name: Push
|
# - name: Push
|
||||||
# run: docker push ${{ env.image }}
|
# run: docker push ${{ env.image }}
|
||||||
|
|
||||||
|
|
||||||
# publish release to npm
|
# publish release to npm
|
||||||
npm:
|
npm:
|
||||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
|
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
|
||||||
needs: [ test ]
|
needs: [test]
|
||||||
# needs: [ release ]
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4 # Updated to v4
|
||||||
|
|
||||||
- name: Publish
|
- name: Publish
|
||||||
env:
|
env:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user