Skip to content

Commit

Permalink
chore: update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryQW committed Oct 31, 2023
1 parent 50a4694 commit 30801d3
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 143 deletions.
43 changes: 2 additions & 41 deletions .github/workflows/build-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x]
node-version: [18.6]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
Expand All @@ -24,47 +24,8 @@ jobs:
- run: yarn lint
- run: yarn test
- name: Cache snap build
if: ${{ matrix.node-version == '18.x' }}
if: ${{ matrix.node-version == '18.6' }}
uses: actions/cache@v3
with:
path: ./packages/snap/dist
key: snap-${{ runner.os }}-${{ github.sha }}
# - name: Require clean working directory
# shell: bash
# run: |
# if ! git diff --exit-code; then
# echo "Working tree dirty after building"
# exit 1
# fi

e2e:
name: End-to-end Tests
runs-on: ubuntu-latest
needs:
- build-lint-test
steps:
- uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Restore snap build cache
uses: actions/cache@v3
with:
path: ./packages/snap/dist
key: snap-${{ runner.os }}-${{ github.sha }}
- run: yarn install --immutable
- name: Install Google Chrome
run: yarn install-chrome
- name: Run e2e tests
run: yarn workspace rss3-metamask-snap run test

all-jobs-pass:
name: All jobs pass
runs-on: ubuntu-latest
needs:
- build-lint-test
- e2e
steps:
- run: echo "Great success!"
50 changes: 0 additions & 50 deletions .github/workflows/create-release-pr.yml

This file was deleted.

48 changes: 0 additions & 48 deletions .github/workflows/publish-release.yml

This file was deleted.

4 changes: 4 additions & 0 deletions packages/site/.env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* To use this, rename to $(.env.production) and set the production SNAP_ORIGIN here
*/
SNAP_ORIGIN=npm:@rss3/social-notifier-snap
4 changes: 0 additions & 4 deletions packages/site/.env.production.dist

This file was deleted.

0 comments on commit 30801d3

Please sign in to comment.