diff options
author | Pierre Ossman <ossman@cendio.se> | 2022-10-13 12:42:06 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2022-10-13 16:20:28 +0200 |
commit | a0c42148236b633b6ea8452204064779d40ea774 (patch) | |
tree | f0ee2f0a77c1e4c4f13a38b222a3bfed400a7eb2 | |
parent | 9761278df8f663f64f13b18e901a80bda799d893 (diff) | |
download | novnc-a0c42148236b633b6ea8452204064779d40ea774.tar.gz |
Use latest GitHub actions
The older ones are getting deprecated, so make the switch.
-rw-r--r-- | .github/workflows/deploy.yml | 10 | ||||
-rw-r--r-- | .github/workflows/lint.yml | 8 | ||||
-rw-r--r-- | .github/workflows/test.yml | 4 |
3 files changed, 11 insertions, 11 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8d6aa4a..715c985 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,18 +10,18 @@ jobs: npm: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - run: | GITREV=$(git rev-parse --short HEAD) echo $GITREV sed -i "s/^\(.*\"version\".*\)\"\([^\"]\+\)\"\(.*\)\$/\1\"\2-g$GITREV\"\3/" package.json if: github.event_name != 'release' - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v3 with: # Needs to be explicitly specified for auth to work registry-url: 'https://registry.npmjs.org' - run: npm install - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: npm path: lib @@ -49,7 +49,7 @@ jobs: snap: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - run: | GITREV=$(git rev-parse --short HEAD) echo $GITREV @@ -61,7 +61,7 @@ jobs: sed -i "s/^version:.*/version: '$VERSION'/" snap/snapcraft.yaml - uses: snapcore/action-build@v1 id: snapcraft - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: snap path: ${{ steps.snapcraft.outputs.snap }} diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 25cbf4d..15aee65 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -6,14 +6,14 @@ jobs: eslint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 - run: npm install - run: npm run lint html: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 - run: npm install - run: git ls-tree --name-only -r HEAD | grep -E "[.](html|css)$" | xargs ./utils/validate diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a0bcb36..138324d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,8 +20,8 @@ jobs: fail-fast: false runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 - run: npm install - run: npm run test env: |