Update github actions to latest versions
Primarily to avoid the versions that are now deprecated, but also update actions/upload-artifact to keep us up to date.
This commit is contained in:
parent
e75938bebc
commit
60643fe695
|
@ -10,18 +10,18 @@ jobs:
|
||||||
npm:
|
npm:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- run: |
|
- run: |
|
||||||
GITREV=$(git rev-parse --short HEAD)
|
GITREV=$(git rev-parse --short HEAD)
|
||||||
echo $GITREV
|
echo $GITREV
|
||||||
sed -i "s/^\(.*\"version\".*\)\"\([^\"]\+\)\"\(.*\)\$/\1\"\2-g$GITREV\"\3/" package.json
|
sed -i "s/^\(.*\"version\".*\)\"\([^\"]\+\)\"\(.*\)\$/\1\"\2-g$GITREV\"\3/" package.json
|
||||||
if: github.event_name != 'release'
|
if: github.event_name != 'release'
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
# Needs to be explicitly specified for auth to work
|
# Needs to be explicitly specified for auth to work
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
- run: npm install
|
- run: npm install
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: npm
|
name: npm
|
||||||
path: lib
|
path: lib
|
||||||
|
@ -49,7 +49,7 @@ jobs:
|
||||||
snap:
|
snap:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- run: |
|
- run: |
|
||||||
GITREV=$(git rev-parse --short HEAD)
|
GITREV=$(git rev-parse --short HEAD)
|
||||||
echo $GITREV
|
echo $GITREV
|
||||||
|
@ -61,7 +61,7 @@ jobs:
|
||||||
sed -i "s/^version:.*/version: '$VERSION'/" snap/snapcraft.yaml
|
sed -i "s/^version:.*/version: '$VERSION'/" snap/snapcraft.yaml
|
||||||
- uses: snapcore/action-build@v1
|
- uses: snapcore/action-build@v1
|
||||||
id: snapcraft
|
id: snapcraft
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: snap
|
name: snap
|
||||||
path: ${{ steps.snapcraft.outputs.snap }}
|
path: ${{ steps.snapcraft.outputs.snap }}
|
||||||
|
|
|
@ -6,14 +6,14 @@ jobs:
|
||||||
eslint:
|
eslint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v4
|
||||||
- run: npm update
|
- run: npm update
|
||||||
- run: npm run lint
|
- run: npm run lint
|
||||||
html:
|
html:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v4
|
||||||
- run: npm update
|
- run: npm update
|
||||||
- run: git ls-tree --name-only -r HEAD | grep -E "[.](html|css)$" | xargs ./utils/validate
|
- run: git ls-tree --name-only -r HEAD | grep -E "[.](html|css)$" | xargs ./utils/validate
|
||||||
|
|
|
@ -20,8 +20,8 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v4
|
||||||
- run: npm update
|
- run: npm update
|
||||||
- run: npm run test
|
- run: npm run test
|
||||||
env:
|
env:
|
||||||
|
|
|
@ -6,8 +6,8 @@ jobs:
|
||||||
translate:
|
translate:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v4
|
||||||
- run: npm update
|
- run: npm update
|
||||||
- run: sudo apt-get install gettext
|
- run: sudo apt-get install gettext
|
||||||
- run: make -C po update-pot
|
- run: make -C po update-pot
|
||||||
|
|
Loading…
Reference in New Issue